码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-08-08 16:13:59      阅读:2560      评论:0      收藏:0      [点我收藏+]

标签:nbsp   define   color   alert   col   str   function   def   efi   

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

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

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

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

 

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

标签:nbsp   define   color   alert   col   str   function   def   efi   

原文地址:https://www.cnblogs.com/wanghaokun/p/9443329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!