toFunction

toFunction

by code json

JavaScript

String.prototype.toFunction=function(){return eval('('+this+')')};
var show = 'function (){alert("success");}'.toFunction();
show();