如何判断js里的对象是否存在首先检查页面是否有错误,是否出现xxx未定义的情况然后可以alert下,例如:varstudent=newfunction(){this.id="01"this.name="aa"}alert(stu2023-02-27JavaScript130