admin管理员组文章数量:1431726
I use this script:
$(document).ready(function() {
$page = jQuery.url.attr("file");
alert(page);
});
but I get error jQuery.url is undefined and through firebug I was able to make sure that jquery.js is loaded
please advise
thanks
I use this script:
$(document).ready(function() {
$page = jQuery.url.attr("file");
alert(page);
});
but I get error jQuery.url is undefined and through firebug I was able to make sure that jquery.js is loaded
please advise
thanks
Share Improve this question asked Mar 31, 2012 at 23:23 zaczac 4,95816 gold badges73 silver badges138 bronze badges 2-
3
You really shouldn't prefix your non-jQuery-object variables with
$
. It is ugly and will confuse people (including you, in the line after you did not add the$
). Besides that, usevar
to avoid creating globals. – ThiefMaster Commented Mar 31, 2012 at 23:26 - Thanks alot ThiefMaster I appreciate your advices and will do it – zac Commented Apr 1, 2012 at 1:39
1 Answer
Reset to default 8There is no built-in $.url
function. You're missing the jQuery URL plugin.
本文标签: javascriptjQueryurl is undefinedStack Overflow
版权声明:本文标题:javascript - jQuery.url is undefined - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745579954a2664559.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论