81,092
社区成员
发帖
与我相关
我的任务
分享
var mac = {};
if (jQuery)
(function() {
$.extend($.fn, {
mac : function() {
var func = arguments[0];
arguments[0] = this;
return eval('mac.' + func).apply(this, arguments);
},
seek : function(name) {
return $(this).find('[name=' + name + ']');
}
});
})(jQuery);
<script type="text/javascript">
eval("x=10;y=20;document.write(x*y)")
document.write("<br />")
document.write(eval("2+2"))
document.write("<br />")
var x=10
document.write(eval(x+17))
document.write("<br />")
eval("alert('Hello world')")
</script>