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

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

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

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

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

 

posted on 2018-08-08 15:55  爱吃柠檬不加糖  阅读(2306)  评论(0编辑  收藏  举报

导航