How to apply SCRIPT in ajax when you specify innerHTML
This article shows you how to use SCRIPT when specifying innerHTML in ajax. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
In fact, this article has nothing to do with ajax, but because it is a problem encountered in the ajax project. So.... When the innerHTML assignment operation occurs, the script will not be run. You can use regular expressions to extract script, and then eval (script)
Sample code