点击服务端按钮后,页面刷新后,有一个错误“Uncaught SyntaxError: Unexpected token ,”,感觉是页面加载时因为出现了这个错误,后面的页面没有加载,然后在点击test按钮后,返回错误“ailexpress.aspx?openid=oIGhy0sxB7qCMvNrVgo8orkZNYdA&option=16:498 Uncaught ReferenceError: test is not defined
at HTMLInputElement.onclick (ailexpress.aspx?openid=oIGhy0sxB7qCMvNrVgo8orkZNYdA&option=16:498)
onclick @ ailexpress.aspx?openid=oIGhy0sxB7qCMvNrVgo8orkZNYdA&option=16:498”
首先多谢楼上几位大侠给出的建议。
@快乐启航 你的方法都试过了,跟原来一样
@EdsionWang 打开开发者工具了,在刚刚进入页面,尚未执行服务端按钮情况下,点击html按钮,其函数可以正常执行,一旦执行服务端按钮后,再点击html按钮,提示“Uncaught ReferenceError: test is not defined”,但是我看了前面的定义,test函数还在script部分里面