split操作数必需为正则或字符串

Number中无split方法。(Uncaught TypeError: a.split is not a function)
因为当调用split的时候,Number不能自动类型转换为String类型。

posted @ 2023-11-11 01:03  龙陌  阅读(24)  评论(0)    收藏  举报