Get the App
SLTechnology News&Howtos  ›  Development  › 

How to apply SCRIPT in ajax when you specify innerHTML

Shulou Source: shulou.com Published: 2022-06-03 07:46:36 11月15日 Update

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

Tags: Run valid tags scripts middle finger applications code content skills knowledge articles concise concise unfortunate interest methods multiple enough good that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Xiaomi Huawei Redmi