当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - Does $.post execute any javascript

问题描述:

Does $.post execute any javascript on the page it is fetching after it is fetched?

If so how can I stop that?

Thanks,

Mat

网友答案:

No, unless the content received contains javascript which is then inserted into the DOM.

网友答案:

No, it doesn't.... but if you add the markup returned by the ajax request to the dom then any script in that markup gets executed

分享给朋友:
您可能感兴趣的文章:
随机阅读: