$(document).ready is not a function的问题
来源:互联网 发布:台达plc编程软件win7 编辑:程序博客网 时间:2024/06/05 02:16
下午完成了一个模块功能的开发,本来测试好的jquery表单验证怎么也出不来了。打开firebug,看到控制台里赫然提示:$(document).ready is not a function。感觉怪怪的,其它页面也
是写着 $(document).ready(function(){ 啊,怎么偏偏在这个页面出问题了呢。仔细想想,调试完成还是一两点的
事情。在这之后换过项目里使用的WEB编辑器,印象中好像导入了prototype的包,难道是它的问题。。。。。
哈哈,终于发现一条重要线索:我曾经也看过一点儿prototype的资料,记得它也是用"$"操作符代替
“document.getElementById”操作,很有可能是它们冲突了。问题发现了,可是怎么解决呢?俺对jquery不太熟,
只能上网搜搜了,果然在这里找到可以用"jQuery"来代替jquery的“$”操作符。吃一堑又长了一智,嘿嘿。
将js中的“$”全部替换成"jQuery",问题得以解决,哈哈!
- $(document).ready is not a function的问题
- $(document).ready is not a function的问题
- $(document).ready is not a function的问题
- JAVA学习(六)__$(document).ready is not a function的问题
- 项目经验分享--$(document).ready is not a function
- function 报错 Uncaught ReferenceError: fuzzySearch is not defined用$(document).ready(function(){ })里面的
- document.form.submit() is not a function
- document.form.submit() is not a function
- $(document).ready(function(){ $('#external_links a').click( function()
- $(document).ready(function(){ })的意思
- $(document).ready(function)的意思。
- $.plot is not a function 和 jQuery(document)中jQuery is not a function
- js提交表单 TypeError: document.reqForm1.submit is not a function 问题
- $(document).ready(function(){})和$().ready(function(){})和$(function(){})的区别
- 关于juqery $(document).ready(function(){});的一个问题...
- $(function(){ })或$(document).ready(function(){ })的理解
- $(document).ready(function(){}) 和$(function(){})的区别
- js报错:TypeError: document.GetElementById is not a function
- Linux软件安装到指定目录方法
- 如果你是计算机专业的在校大学生(转载)
- I2C总线原理及应用实例
- 20110510 Brew工程师培训笔记——第二十六章 开发一个完整的BREW程序
- 1/n的级数展开
- $(document).ready is not a function的问题
- LaTeX技巧心得之一:建立参考文献的超链接
- SUSE Linux 多路径软件+LVM+裸设备的配置
- 值传递和引用传递
- 复用布局文件:include
- 服务器返回状态码图解
- Mvvm Light Toolkit for wpf/silverlight系列之Messenger
- How to set processor affinity from Batch File for Windows XP
- 将String 转换为 Date