EasyUI 搜索框
来源:互联网 发布:不用网络的电视软件 编辑:程序博客网 时间:2024/06/06 01:01
<html><head><title>draggable</title><link rel="stylesheet" type="text/css" href="H:/jQuery EasyUI/jquery-easyui-1.5.3/themes/default/easyui.css"><link rel="stylesheet" type="text/css" href="H:/jQuery EasyUI/jquery-easyui-1.5.3/themes/icon.css"/><script type="text/javascript" src="H:/jQuery EasyUI/jquery-easyui-1.5.3/jquery.min.js"></script><script type="text/javascript" src="H:/jQuery EasyUI/jquery-easyui-1.5.3/jquery.easyui.min.js"></script><script>$(function (){$('#s').searchbox({/*width number:设置组件的宽度*/width:200/*searcher e:当搜索按钮被点击时执行*/,searcher:function(value,name){ alert(value);},/*value stirng:搜索框默认值prompt string:搜索框提示信息*/prompt:'请输入搜索内容'/*menu selector:通过选择器添加搜索菜单*/,menu:'#m'}); /*menu none:返回搜索框属性对象textbox none:返回搜索框属性对getValue none:返回当前搜索关键字setValue value:设置搜索的关键字selectName name:设置搜索菜单类型getName:none:获取搜索菜单类型destroy none:清除搜索框组件*/var propertiesJSON = $('#s').searchbox('options');var properties = "";for(var item in propertiesJSON) {properties = properties +item+"属性的值:"+propertiesJSON[item] + ";\n";}alert(properties);$('#s').searchbox('setValue','jQuery EasyUI');alert($('#s').searchbox('getValue'));})</script></head><body><input type="text" id="s" name="eachName" /><div id="m" style="width:150px"><div data-options="name:'method1',selected:true">百度</div><div data-options="name:'method2'">搜狗</div></div></body></html>
阅读全文
0 0
- easyui datagrid 搜索框
- easyui-search搜索框
- EasyUI 搜索框
- EasyUI 搜索框
- EasyUI之搜索框searchbox
- easyui combobox 动态搜索框
- easyui datagrid添加搜索框
- easyUI下拉框表格扩展(实现搜索功能)[easyUI+java]
- easyUI searchBox搜索框的实现
- easyUI searchBox搜索框的实现
- EasyUi模糊匹配搜索框combobox
- easyui datagrid toolbar 添加搜索框
- easyUI searchBox搜索框的实现
- easyUI searchBox搜索框的实现
- easyui仿百度搜索提示框
- easyui-模糊搜索
- easyui 回车搜索
- easyui tree 模糊搜索
- C++设计模式10--命令模式(二)(Command)--降低请求发送者与接收者耦合
- libcurl 如何支持https
- Android高仿微信拍照控件,实战推荐!
- Oracle 按年、月、日、周、季度连续查询
- 文本分类python
- EasyUI 搜索框
- Fyusion完成了2200万美元的B轮融资 金立参投
- 23种设计模式
- jpg 'gbk' codec can't decode byte in position 解决方法
- java常用实用类详解
- 红旗Linux已然是国内老大
- 芯片MAX3490使用记录
- win10 Anaconda:Invalid Qt API 'pyqt5', valid values are: 'pyqt' or 'pyside'
- 2017 年最受欢迎的 10个编程挑战网站