赞
踩
提取js中函数的内容。所以需要将函数名转成字符串。
函数名.toString()
- var a=function(){console.log(123)}
-
- a.toString();
输出:
"function(){console.log(123)}"
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。