分类: LINUX
2012-12-12 09:40:56
:循环执行一个指定列表中的每个值。若没指定'in Words……',则认为'in "$@"'.的值会被依次设置为Words中指定的每个值并执行一次命令Commands.2: 循环执行2: for (( Exp1; Exp2; Exp3 ));do Commands ;done:都是数学表达式。若没有指定表达式则等价于指定为1: while until var kevent = 'onabort|onblur|onchange|onclick|ondblclick|onerror|onfocus|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onresize|onselect|onsubmit|onunload'; var aevent = kevent.split('|'); jQuery('.showContent img').each(function(){ var nimg = this; jQuery.each(aevent, function(i, n){ if (n!='onload') { jQuery(nimg).attr(n, ''); } else { if (jQuery(nimg).attr(n) != 'if(this.width>650) this.width=650;') { jQuery(nimg).attr(n, ''); } } }); });