自由李代数

在2020年4月12日 (星期日)加入
添加407字节 、​ 2020年11月18日 (星期三)
无编辑摘要
标签移动版编辑 移动版网页编辑
标签移动版编辑 移动版网页编辑
第181行: 第181行:
</pre>
</pre>


=== 批量分类 ===
=== 批量替换 ===
<pre>
<pre>
function replaceText(title, org, subst, summary) {
function replaceText(title, org, subst, summary) {
第208行: 第208行:
     replaceText(replaceList[i], org, subst, "批量替换" + org + "为" + subst + ",第" + i + "个");
     replaceText(replaceList[i], org, subst, "批量替换" + org + "为" + subst + ",第" + i + "个");
}</pre>
}</pre>
=== 搜索+批量替换 ===
<pre>
function massReplace (org, subst) {$.ajax({url: "/api.php?action=query&format=json&list=search&srsearch=" + org + "&srlimit=max&srwhat=text&srprop=", type: "GET", success: function (data) {
var results = data.query.search;
for (i = 0; results[i]; i++)
{replaceText(results[i].title, org, subst, "批量替换" + org + "为" + subst + ",第" + i + "个");}
}
})
}
</pre>


== 日水录 ==
== 日水录 ==
# 金粒鲜鲜,有一卡应尽一帖之用;挖矿坑坑,无万粒不应狂买除嫖。2020年10月28日 (三) 22:26 (CST)
# 金粒鲜鲜,有一卡应尽一帖之用;挖矿坑坑,无万粒不应狂买除嫖。2020年10月28日 (三) 22:26 (CST)
# 贫而水固易,不贫而水难。2020年10月29日 (四) 21:34 (CST)
# 贫而水固易,不贫而水难。2020年10月29日 (四) 21:34 (CST)