function initiallist(a,b) { //listsData 初始
var listData = [];
for (x in xArgs) {
for (y in xArgs[x]) {
listData.push('' + xArgs[x][y].classify + '不限 ')
}
}
var listfilter = listData.join("");
//如何修改字符串中 第二不限
if(a!==undefined){
var news='不限';
var re=/"news+"/g;
var regindex=listfilter.search(re)
var listfilter = listfilter.replace(regindex,''+被替换的值+'') //需替换第a个匹配的值
}
}
//for 循环listfilter结果为
/*
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
闭关修行中......