js,注释问题?
js的代码: // If a constructor was passed instead of an object, use its prototype if (typeof o == "function") o = o.prototype; 这个什么意思?那段注视什么意思?
js的代码: // If a constructor was passed instead of an object, use its prototype if (typeof o == "function") o = o.prototype; 这个什么意思?那段注视什么意思?
答案:构造函数传入的参数不是一个对象
而是一个函数的名称
使用函数的 prototype
大概这个意思
上一个:求js图片立体旋转效果.
下一个:使用js写的fileUpLoad选择图片后显示到image上,结果image的图片路径前面都自动加了file:/// 求高手急急急