1、创建一个名称为 search_type 的html文件
2、添加一个input元素 设置input类型为search设置id为 my_search_id_type
3、添加一个button按钮,在点击事件中加入自定义函数my娄多骋能_search_type添加一p标签,设置id 为 show_search_type
4、在javascript中创建一个自定义函数 my_search_type
5、在自定义函数中获取input search对象。用 type 属性获取搜索字段的表撮劝丛食单类型,将获取的结果添加到p标签中显示
6、在浏览器中打开文件 search_type,点击button查看效果