/*按下某键时*/
if (event.shiftKey) { alert("shiftKey按下"); }
if(event.ctrlKey){alert("ctrlKey按下");}
if (event.shiftKey) { alert("shiftKey按下"); }
if(event.ctrlKey){alert("ctrlKey按下");}
if (event.altKey) { alert("altKey按下"); }
/*页面自适应大小*/
pg.autoheight = function () { var btnh = $(".btmbox").height(); $(".pgend").height(btnh); }
pg.autowidth = function () { var pgw = $(document).width(); var tkw = $(".ticketbox").width(); var edw = pgw - tkw - 5; $(".editCon").width(edw); }
pg.autosize = function () { /* pg.autoheight();*/pg.autowidth(); }
**注意
jQuery的each终止或跳过
涉及迭代,不可避免需要有非正常终止,或强制跳过的情况。在jQuery的each函数中,存在以下关系:
引用
continue :return true;
break :return false;
直接return也会跳出jQuery。

被折叠的 条评论
为什么被折叠?



