1、添加中继器元件并绑定内容
2、添加单行文本框并设置中继器样式为隐藏
3、添加文本框的“文本改变时”事件,添加中继器的筛选动作并设置条件为"[[((item.Name.toUpperCase()).indexof(wname.toUpperCase().trim()))>-1]]"
多条件查询(有多少个条件后边的-2的值应对应修改成,条件个数*-1):
[[((item.Name.toUpperCase()).indexof(wname.toUpperCase().trim()))+((Item.brand.toUpperCase()).indexof(wname.toUpperCase().trim()))>-2]]
注:wname是局部变量获取文本框中的值
函数说明:
函数名
说明
toUpperCase()
把字符串转换成大写
indexof()
检索字符串(返回字符串位置从0开始,未检测到则返回-1)
暂无评论,快来抢沙发吧!