Why do I directly console to show that undefined must be settimeout
Why do I directly console to show that undefined must be settimeout
when does your goods
have data when you output refs
, you should goods
have no data
do not believe console.log
the console outputs the information status when you click to expand, not when you output, that is to say,
var obj = {};
console.log(obj);
setTimeout(function(){
obj.name = "123"
console.log(obj);
}1000)
expanding the two outputs on the console is the same
timing is not right
first of all, ide/components-edge-cases.html-sharp%E8%AE%BF%E9%97%AE%E5%AD%90%E7%BB%84%E4%BB%B6%E5%AE%9E%E4%BE%8B%E6%88%96%E5%AD%90%E5%85%83%E7%B4%A0" rel=" nofollow noreferrer "> $refs will only take effect after the component rendering is completed
and you want to call it when mounted. However, mounted does not promise that all subcomponents will be mounted together. If you want to wait until the whole view is rendered, you can replace mounted
with vm.$nextTick. More oddly, I have console.log (this.$refs); console.log (this.$refs.foodList) in the _ getitemsHeight method; these two have interesting things
Previous: Antd tag.CheckableTag value report error
Baidu didn t find the reason for it for a while-the error message thrown by the browser was Uncaught Error: Objects are not valid as a React child (found: object with keys {}). If you meant to render a collection of children, use an array instead or wr...
as the title my component code is <input v-onumber="message" :value="message" > data is data () { return { message: 1 , forlist:{ data:1, name:2, hei:3 }, item...
I remember there was such a update, but I couldn t find update on the official website-- what is that api? ...
my friend asked me to do an automatic buying and selling program, and then I wanted to grab the post package of a website and found that it was encrypted, so after analysis, the vue, packaged by webpack can see all the programs when it does the breakpoi...