Script Home
  • Analysis of the method of collision detection by JS

    +Read more
    Author:zyq / Release:2018-1-19 / category:css, JavaScript, Script / crowd0 views time+ / sofa /
    this article describes the method of collision detection by JS. Share to you for your reference, as follows: is a simple example of collision detection, collision detection is div1 and div2, when div1 met div2 div2, change the color, see figure 2018019145517 "alt=" see Figure: JS javascri...
  • The way browsers debug dynamic JS scripts (Graphic)

    +Read more
    Author:zyq / Release:2018-1-19 / category:JavaScript, PHP, Script / crowd0 views time+ / sofa /
    two days before the company pulled the front-end code modifications found in the developer tools sources options inside, I actually did not set out to debug the JS script, then read the script, is introduced in the dynamic page, perhaps because so don't show up, but if you can not rely on the br...
  • 7 practical skills to share ES6

    +Read more
    Author:zyq / Release:2018-1-18 / category:JavaScript, Script / crowd0 views time+ / sofa /
    Hack #1 switch element using the array to achieve the value of deconstruction of interchangeable let a ='world', B ='hello' = [a, b] [b, a] console.log (a) / / -> Hello console.log (b); / / -> world Hack; #2 < / strong> debugging we often use (console.log) to debug, try (console.table) w...
  • Implementation of lottery system based on JavaScript

    +Read more
    Author:zyq / Release:2018-1-16 / category:JavaScript, Script / crowd0 views time+ / sofa /
    implements a simple lottery system with JavaScript, with the start button and the stop button. function: - point start button starts raffle, randomly appears the name of the prize; point stop button can stop the raffle; - press enter key to switch to start raffle and stop raffle. The eff...

0Wide search 1Web Design 2Script 3Network Programming 4Database 5Operating system 6Network Security