I use code like this to dynamically create some link-based controls:
...
So when I click on the link, it does nothing. If I call a.onclick() explicitly, it works. What is wrong?
以上就是javascript: setting a.onclick doesn't work at first run的详细内容,更多请关注web前端其它相关文章!