JS报错Uncaught ReferenceError: $ is not defined

rongina 发布于 2014/09/27 12:40
阅读 52K+
收藏 0

<div style="float: right; width: 930px;">

<input type="hidden" value="1" id="curpage"/>

<input type="hidden" value="20" id="pageSize"/>

<input type="hidden" value="0" id="flag"/>

  <ul class='pageUl'><a href=javascript:void(0); url="packageAction!runTerminalPackage?curpage=2&flag=0&pageSize=20" class=linkpage><li class=fpnl_li onmousemove=overBorder(this) onmouseout=outBorder(this)>...2</li></a><a href=javascript:void(0); url="packageAction!runTerminalPackage?curpage=2&flag=0&pageSize=20" class=linkpage><li class=fpnl_li onmousemove=overBorder(this) onmouseout=outBorder(this)>>></li></a><a href=javascript:void(0); url="packageAction!runTerminalPackage?curpage=2&flag=0&pageSize=20" class=linkpage><li class=item_li onmousemove=overBorder(this) onmouseout=outBorder(this)>2</li></a><li class='item_li' style="background-color:#E8E8FF;font-weight:bold;">1</li><a href="javascript:void(0);"><li class=fpnl_li onmousemove=overBorder(this) onmouseout=outBorder(this)><<</li></a><a href="javascript:void(0);"><li class=fpnl_li onmousemove=overBorder(this) onmouseout=outBorder(this)>1...</li></a><li class='title_li'>总记录数:<b class='title_b'>25</b>&nbsp;  总页数:<b class='title_b'>2</b>&nbsp;  每页显示数:<input type='text' title='输入完成按回车键查询' id='u_size' class='input_text' value=20  onkeydown='skipPageSize(event,25,1,20,this)'/>&nbsp;  当前页:&nbsp;<input type='text' title='输入页码,按回车跳转' value=1 id='u_in' class='input_text' onkeydown='keyDowns(event,2,this)' />  /2&nbsp;</li> </ul><script type='text/javascript'>$(function() { $('.linkpage').die().live('click',function() {$.get($(this).attr('url'),function(v) { $('.packagepages').html(v);loadCourierInfo(); });}); });</script><script>function keyDowns(e,pages,anode) {var ev = window.event || e;var code = ev.keyCode || ev.which;if(code == 13) {var num = $(anode).val();if(num > pages) {num = 1;} else if(num < 1) {num = 1;}if(num != null && num != '' && Number(num)){$.get("packageAction!runTerminalPackage?curpage="+num+"&pageSize=20",function(v) {$('.packagepages').html(v);loadCourierInfo();}); }}}function overBorder(tag) {tag.style.border = '1px solid #7575FF';}function outBorder(tag) {tag.style.border = '1px solid #C4C4FF';}function skipPageSize(e,total,curpage,pageSize,anode) {var ev = window.event || e;var code = ev.keyCode || ev.which;if(code == 13) {var num = $(anode).val();if(num > total) {num = total;} else if(num < 1) {num = 1;}if(num != null && num != '' && Number(num)) {$.get("packageAction!runTerminalPackage?curpage="+curpage+"&pageSize="+num+"",function(v) {$('.packagepages').html(v);loadCourierInfo();}); }}}</script>

</div>

加载中
1
buglife
buglife
要么是未导入jquery包,要么是导入的顺序不对
小99
小99
有道理
0
灰花走湿
灰花走湿
可能是js包引入问题,
0
蓝极宇_11425
蓝极宇_11425
要么是未导入jquery包,要么是导入的顺序不对 +1
返回顶部
顶部