'html转js函数
function htmltojs(str)
 dim tojs,i
 str = Replace(str, Chr(10), "") 
 str = Replace(str, Chr(32) & Chr(32), "") 
 str = Split(str, Chr(13))
 tojs=""
 For i = 0 To UBound(str) 
 If Trim(str(i)) <> "" Then 
 str(i) = Replace(str(i), Chr(34), Chr(39)) 
 tojs = tojs & "document.write(" & Chr(34) & str(i) & Chr(34) & ");" & Chr(10) 
 End If 
 Next
 htmltojs = tojs
end function

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
猜你喜欢
  • 2021-11-24
  • 2022-02-07
  • 2022-02-08
  • 2022-12-23
  • 2021-08-02
  • 2021-12-04
相关资源
相似解决方案