在写代码的过程中,会时不时的将instanceof写成instanceOf,然后出现错误。 今天查了一下,发现instanceof和typeof属于JavaScript的运算符,而valueOf,toString为方法。