html调用js中的方法未定义

html调用js中的方法未定义

报错信息:
index.html:485 Uncaught ReferenceError: show is not defined
at HTMLSelectElement.onchange (index.html:485)

原因:
所调用的方法不能放到其他方法里面,必须全局定义

猜你喜欢

转载自blog.csdn.net/qq_33271461/article/details/89521902