def DeleteObjectAllProperties(objectInstance): if not objectInstance: return listPro =[key for key in objectInstance.__dict__.keys()] for key in listPro: objectInstance.__delattr__(key)
HTML的<button>标签的type主要有三种可选值,reset.submit.button. 其中reset为重置按钮,用于清除form表单的数据:submit为提交按钮,点击后会对form表单做提交操作(除去其他因素):button为单纯按钮类型,一般会对该类型的<button>添加js脚本的点击触发事件. 这里重点要说的是,一般来讲,应该始终为<button>按钮规定 type 属性.但是如果<button>按钮未写明type,不同的浏览器会做不同