- <script>
- var jsText = 'return function(){alert(1+1)}'
-
- var jscode = new Function(jsText)();
-
- jscode();
- </script>
赞
踩
- <script>
- var jsText = 'return function(){alert(1+1)}'
-
- var jscode = new Function(jsText)();
-
- jscode();
- </script>
转载于:https://www.cnblogs.com/iwenwen/p/3670649.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。