网页按键精灵:替换文本内多个词汇到对应值

张凯 网络杂苑>按键精灵 2018-4-8 17:36 426字 662 0 字号: | |
m = Array("430422120004", "430422120007", "430422120008", "430422120009", "430422120214")
t = Array("430422123004", "430422123007", "430422123008", "430422123009", "430422123214")
text = Plugin.File.ReadFileEx("D:\F3.txt")
For i = 0 To UBound(mb)
    text = Replace(text, m(i), t(i))
Next
Call Plugin.File.DeleteFile("D:\F3.txt")
Call Plugin.File.WriteFileEx("D:\F3.txt", Replace(text, "|", vbcrlf))
MessageBox "替换成功!"
本文链接:http://www.aswait.com/q/582.html 百度已收录
版权申明:文章如未标注转载均为本站原创,转载请注明出处"张凯博客"。

发表评论

电子邮件地址不会被公开。必填项已用*标注

Ɣ回顶部
00:00 / 00:00
顺序播放