javascript - how to insert a script tag to div?

后端 未结 4 1505
猫巷女王i
猫巷女王i 2020-12-21 08:34

How to do that:

document.getElementById(\'target\').innertHTML = \"<script> alert(1); <script>\";
4条回答
提交回复
热议问题