好奇怪,为什么会多输出了一个undefined,请各位路过的朋友指点一下. qq.toString()里面已经有document.write了,为什么还要document.write,多出的null就是你的document.write输出的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是多出的undefined的,2楼笔误了,Sorry function qq() { document.write("test or test"); } Function.prototype.originalToString = Function.prototype.toString; Function.prototype.toString = function() { document.write("Change the toString function <br>"); return "一个函数如果没return任何信息, 缺省情况会return一个undefined"; }; document.write(qq.toString()) 基础问题 为什么第1个事件响应1次后不在响应? 求算法--关于优化分组 求修改一段js代码 鼠标移动改变透明度问题 复选框的问题,高手请来帮忙! 关于表格操作遇到的郁闷的问题 关于$(this)的疑惑 以身相许,跪求代码,怎样移动交换一个页面内的任意两个table呢? 关于list转换成json的问题 想知道下面这种json串怎么转换成 求高人 奇怪为什么会多输出一个undefined?请各位朋友指点一下,谢谢了 for循环
{
document.write("test or test");
}
Function.prototype.originalToString = Function.prototype.toString;
Function.prototype.toString = function()
{
document.write("Change the toString function <br>");
return "一个函数如果没return任何信息, 缺省情况会return一个undefined";
};
document.write(qq.toString())