我在使用 jQuery 做一些非常基本的事情时遇到了问题。有人能告诉我我到底做错了什么吗?
如果我运行下面的代码,函数 $。Get 似乎不见了(getJSON 和其他的也不见了)。但是 $本身和其他函数确实存在,所以我知道 JQuery 正在加载。
google.load("jquery", "1.3.2");
function _validate(form, rules_file) {
$.get('/validation_rules.json',function(data) {
alert("hello")
})
}
任何想法都可以。
谢谢, 罗伯
编辑: 这里有一些额外的信息:
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("prototype", "1.6");
google.load("scriptaculous", "1.8");
google.load("jquery", "1.3.2");
</script>
<script>
jQuery.noConflict(); // prevent conflicts with prototype
</script>
<script src="/livepipe/src/livepipe.js"
type="text/javascript"></script>
<script src="/livepipe/src/window.js"
type="text/javascript"></script>
<script src="/livepipe/src/tabs.js"
type="text/javascript"></script>
<script src="/jquery.maskedinput-1.2.2.js"
type="text/javascript"></script>