|

楼主 |
发表于 2015-7-3 16:07
|
显示全部楼层
想不到是wcymiss 回覆,真让人惊喜…
一直没有时间测试,
刚刚测了一下,真的可以运作
将encode 函数改成如下
- Private Function encodeURI(strText As String) As String
- strText = Replace(strText, "", "\")
- strText = Replace(strText, "'", "\'")
- strText = Replace(strText, Chr(13), "\r")
- strText = Replace(strText, Chr(10), "\n")
- strText = Replace(strText, Chr(0), "\0")
- With CreateObject("msscriptcontrol.scriptcontrol")
- .Language = "JavaScript"
- 'encodeURI = .Eval("encodeURIComponent('" & strText & "');")
- encodeURI = .Eval("encodeURI('" & strText & "');")
- End With
-
-
- End Function
复制代码
|
|