本帖最后由 pcl_test 于 2016-8-10 18:35 编辑
- //&cls&more +11 "%~f0"|cscript -nologo -e:jscript "%~f0"&pause&exit
-
- var arr = ['1', '栗', '2', '子'];
-
- var txt = WSH.StdIn.ReadAll().replace(/([\s\S]+)\*\//,'$1').replace(
- /(<string>)[^<]*(<\/string>)/g,
- function(a,b,c){return b+arr.shift()+c}
- )
- WSH.echo(txt);
-
- /*
- ……
- <key>title</key>
- <string></string>
- <key>urlString</key>
- <string>%^&</string>
-
- <key>title</key>
- <string>*?:"</string>
- <key>urlString</key>
- <string></string>
- ……
- */
复制代码
|