Gives an error. I have placed the code just before
. Still getting the error.
4条回答 暖寄归人 (楼主) 2020-12-06 20:19 You cannot place myFunction after the onclick. When the onclick is seen there is no definition for myFunction. Place the JavaScript in tag. Also, move the function outside of ready(). Like this: ... 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You cannot place myFunction after the onclick. When the onclick is seen there is no definition for myFunction.
myFunction
onclick
Place the JavaScript in tag. Also, move the function outside of ready().
ready()
Like this:
... 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题