0

我想在 ajax 响应后运行相同的 js 代码。

js代码是

<script>
var wid = 2670, gid = 8412;
var rpHost = (("https:" == document.location.protocol) ? "https://" : "http://");
var tt = "t_reklamporttakip_Kozmetik_1x1_Uye_Takip";
var ciid = 4541454;
document.write(unescape("%3Cscript src='" + rpHost + "ad.reklamport.com/scripts/rpn.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='" + rpHost + "ad.reklamport.com/rpgetad.ashx?tt=" + tt + "&ciid=" + ciid + "&rnd=" + Math.random() % 99999999 + "' %3E%3C/script%3E"));
</script>

我如何运行这段代码

jQuery.get('url', function(response){
    // i want run here!
});

任何人的任何建议

4

1 回答 1

1

如果您从服务器获取 JavaScript,请使用getScript()

于 2012-07-05T12:49:36.910 回答