1、创建一个名称为 text_select 的html文件
2、添加一个input元素 设置input类型为text设置id为 my_text_id_select
3、添加一个button按钮,在点击事件中加入自定义函数my娄多骋能_text_select添加一p标签,设置id 为 show_text_select
4、在javascript中创建一个自定义函数 my_text_select
5、在自定义函数中获取input text对象。用 select方法选中文本框中的内容,将获取的内容添加到p标签中显示
6、在浏览器中打开文件text_select ,点击button查看选中文本框中的内容效果