Javascript中时间对象隐式转换原始值的规则问题var now=new Date()alert(typeof(now + 1)) 调用now.toString(),然后与1拼接,这时就成字符串了,所以alert是string这里有个示例:var now=new Date() 改写2023-02-21JavaScript130