1、创建一个名称为 submit_type 的html文件
2、添加一个input元素 设置input类型为submit设置id为 my_submit_id_type
3、添加一个button按钮,在点击事件中加入自定义函数my娄多骋能_submit_type添加一p标签,设置id 为 show_submit_type
4、在javascript中创建一个自定义函数 my_submit_type
5、在自定义函数中获取input submit对象。用 type 属性获取表单提交按钮的字段类型,将获取的结果添加到p标签中显示
6、在浏览器中打开文件 submit_type,点击button查看效果