Uncaught TypeError: this.target.watermark
来源:互联网 发布:文明网络小报 编辑:程序博客网 时间:2024/06/02 21:25
前端环境:
JSF
问题:
做一个表单注册用户,页面抛出一个错误
Uncaught TypeError:this.target.watermark is not a function
解决过程:
使用Google在页面进行调试,发现在图片验证码的地方出错。和之前的代码比对了好久没有发现问题。
浩翔过来看,看看代码也没有问题,但是他有经验,
解决思路:
1,把正常的代码功能一样的贴过来用,运行正常。但是未发现原因出到了什么地方。
2,下载使用Beyond Compare比较工具,把之前运行不了贴过来后的代码进行比较。
结果发现,不能运行正常原因是多了
<scripttype="text/javascript"src="#{tplVars.themeJSPath}/jquery-1.9.1.min.js"></script>
原因分析:
页面加载时自上而下自左到右执行的,JSF内置了JQuery在页面引入完了之后,再次的引入Jquery
会把原来的JQuery覆盖掉,所以找不到 this.target.watermark。
1 0
- Uncaught TypeError: this.target.watermark
- 如何解决Uncaught TypeError: this.setState is not a function
- webView console Uncaught TypeError
- Uncaught TypeError: Illegal invocation
- Uncaught TypeError: Illegal constructor
- Uncaught TypeError: Illegal invocation
- WaterMark
- Watermark
- watermark
- Uncaught TypeError: Converting circular structure to JSON
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: string is not a function
- Uncaught TypeError: object is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: undefined is not a function
- Javascript报uncaught typeerror illegal invocation错误
- Uncaught TypeError: object is not a function
- JQuery报错Uncaught TypeError: Illegal invocation
- web项目使用域名访问的基本设置
- nginx php fastcgi
- 蓝桥杯 模拟试题2
- 转载_Creating Software Products for the Mac Platform
- c++虚函数与纯虚函数
- Uncaught TypeError: this.target.watermark
- HTML5 - 经典的上中下三段式布局(并使用<nav>实现侧边导航链接)
- 调试JDK源码-HashSet实现原理
- Cpp--重载全局的new和delete
- 网络总结
- 本机电脑搜索,类似Everything
- 初学支持向量机(SVM)
- iOS tableview自定制以及scrollview的无卡顿定时滚动
- 几个容易忽视的java编程细节