JavaScript returned by AJAX is not working. How to work with JavaScript?

前端 未结 6 1198
天涯浪人
天涯浪人 2020-12-12 06:52

this is my page Test1.asp






        
6条回答
  •  囚心锁ツ
    2020-12-12 07:34

    Prototype has a nice way of handling this. See their stripScripts, extractStrips, and evalScripts methods on the String object. If you just strip the scripts, put your text into a div and then evalScripts, that'll work across all brwosers so scripts get executed exactly once.

提交回复
热议问题