html调用js提示方法名 is not defined处理方法

Posted CIBLE

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html调用js提示方法名 is not defined处理方法相关的知识,希望对你有一定的参考价值。

  • 解决办法(方法名 is not defined):

dosave=function(){
     alert("方法名在前");  
}  

下面这种写法有时候会出现错误:

function dosave(){  
  alert("方法名在后");  
}  

 

以上是关于html调用js提示方法名 is not defined处理方法的主要内容,如果未能解决你的问题,请参考以下文章