【发布时间】:2011-10-17 12:41:51
【问题描述】:
我有以下 jQuery 并想测试是否支持 naturalWidth:
function special(image) {
if (typeof this.naturalWidth != 'undefined') {
//do something
}
}
但这似乎不起作用?有什么想法吗?
【问题讨论】:
-
相关:stackoverflow.com/questions/135448/…(一团糟!!)