文章列表
var folderids = [];
$.each( $("#list_periodical").find("input[name='folder']"), function(i, v){
if( $(v).attr("checked") == "checked" ){
folderids.push( $(v).val() );
}
});
...
#foreach( $item in $example)
<div>2222</div>
#end
{for item in example}
{/for}
目前只能重装firebug或者重装火狐浏览器,欢迎给出更好的解决方法
禁止贪婪:
1. var pattern = /8([^8]*)8/g;
var str = '8google8 8google8 8google8';
document.write(str.replace(pattern,'<strong>$1</strong>'));
res:google google google(粗体)
2. var pattern = /8(.*?)8/g;
var str = '8google8 8google8 8google8';
document.write(str.replace(patte ...