好奇怪,为什么会多输出了一个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()) 请教一个jQuery返回的问题 html 用js直接加载webservice xml对象 list 急急急,javascript的prototype问题? js 菜单问题 把这段excel录制的宏代码,转成javascript的代码? 一个隐藏的问题,高手们帮帮忙吧 在不同的页面中怎么样获得已经打开的子窗口 急!急!急!用javascript把word的内容转化为html代码 可用分都用上 问一个功能可以实现吗?应如何? 怎么得到鼠标在网页上的绝对位置呀(不受滚动条影响的位置) 奇怪为什么会多输出一个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())