You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
以下代码,!!element,总是返回 true,建议的解决是 var element = $(selector)[0] 或采用length判断
Widget.query = function(selector) {
var element = $(selector).eq(0)
var cid
element && (cid = element.attr(DATA_WIDGET_CID))
return cachedInstances[cid]
}
The text was updated successfully, but these errors were encountered:
以下代码,!!element,总是返回 true,建议的解决是
var element = $(selector)[0]
或采用length判断The text was updated successfully, but these errors were encountered: