input对象button类型如何使用type属性
1、创建一个名称为 button_type 的html文件

2、添加一个input元素 设置input类型为button,设置id为obj_my_button_type

3、添加一个button按钮,在点击事件中加入自定义函数my_button_type添加一p标签,设置id 为 show_button_type

4、在javascript中创建一个自定义函数 my_button_type

5、在自定义函数中通过id获取input对象。用type属性返回input对象的button的类型

6、在浏览器中打开文件,点击button查看返回的类型效果
