
JavaScript
#
逆风GLORY
Stay Hungry, Stay Foolish. – Steve Jobs
展开
-
Uncaught TypeError: Cannot read property 'addMethod' of undefined
目录1:js 引入顺序2:‘$’ 冲突出现以上错误有俩种情况:1:js 引入顺序jquery.validate.js 引入的顺序一定要在执行$.validator.addMethod()之前引入。解决方案:保证 jquery.validate.js 优先引入。2:‘$’ 冲突当前 .html 文件引用函数 $.validator.addMethod() ,明明引入...原创 2018-10-30 11:56:53 · 6607 阅读 · 1 评论 -
HTML页面的加载顺序
1、加载顺序<html> <head> <!-- 引用外部JS文件 --> <script src="..........."></script> <!--引用外部css样式 --> <link href=".......转载 2018-11-07 16:04:05 · 985 阅读 · 0 评论 -
JavaScript 语法
1、charAt() 方法可返回指定位置的字符语法:stringObject.charAt(index)注释:字符串中第一个字符的下标是 0。如果参数 index 不在 0 与 string.length 之间,该方法将返回一个空字符串。 参考文献:http://www.w3school.com.cn...原创 2018-11-12 14:41:29 · 197 阅读 · 0 评论