Home > front end >  Data in vue rendering delays
Data in vue rendering delays

Time:10-01

Idle at home recently to have no work to do a small game, pushed box is based on the vue, in the process of production, found on the keyboard click the up and down or so later, frequently, characters of the motionless, later after tests found that character location change is not update to the rendering of div, test are as follows;
1. After the click event in the console prints the character the coordinates of the
 console. The log (direction, enclosing man. X, enclosing man. Y) 

2. Somewhere on the page, use {{}} expression, show the value of the current character coordinates, using the
 {{man. X}}, {{man. Y}} 

By clicking on the arrow keys, after observing the console of the x, y, and on the page x, y, found the same sometimes, sometimes, logic judgment, it is because of the delay in page
So, what is going on here? Is the bug vue itself?
  • Related