时间:2024-10-14 14:46:41
1、创建一个名称为error的html文件
3、在button按钮中加入点击事件,在事件中添加一个自定义函数starterror
5、在自定义函数中加入console对象的error方法并输出一条语句