new Function()

<script type="text/javascript">
var b = new Function('num','alert(num);');
b({});
b(2);
b(3);
</script>

posted @ 2017-03-27 22:48  jiangxiaobo  阅读(174)  评论(0编辑  收藏  举报