javascript - The method in methods will get the value twice, the first time is empty
巴扎黑
巴扎黑 2017-05-18 11:03:08
0
3
621

I originally wanted to get the length of the reply, but the error message was always undefined, and the page was displayed normally, so I logged the value and looked at it and found that it was executed twice and the first time the value was empty. I don’t know what it was. Why, can anyone help me look at it?

巴扎黑
巴扎黑

reply all(3)
左手右手慢动作

It must have been called twice, check carefully

曾经蜡笔没有小新

Then you have to check if you have called this method twice

伊谢尔伦

Isn’t it normal to call it twice?

This will happen if you assign values ​​asynchronously

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template