Array.prototype.indexOf called on null or undefined at Function.c.inArray (zepto.js<anonymous> (index.html:97)c.inArray @ zepto.js:2j @ zepto.js:2
这是97行前
当我在“String”类型的对象上使用“tap”方法时,我遇到了一个有趣的问题。"abc".tap { |o| o = "xyz" } # this line returns "abc" instead of "xyz"
'tap‘方法适用于其他类型的对象。[].tap { |o| o << "xyz" } # this line returns ["xyz"] as expecte