moveUp: function(result){
var self =this,timer,circleTime=0;
var _result=result;
timer = setInterval(function(){
self.goHtml(_result[circleTime]);
circleTime++;
},6000);
},
goHtml: function(val){
return val;
}
The value returned by v-html is empty, with nothing. Because the info in the goodsList has not changed during the traversal, the data will not be rendered to the DOM node. How to solve the problem? (Attachment: The first picture is shown without the moveUp method for everyone to see)
html
js
Provide an idea. . .
v-for="(index,info) in goods.listId" Is it written backwards?
Info should be in the front and index in the back