easyui datagrid数据项为空时提示

guolingguo1 guolingguo1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
easyui datagrid数据项为空时,如何给出提示,“没有查找项”等

还有easyui-numberbox奇怪的问题:
<td align="right">
订单价格
</td>
<td align="left">
<input type="text" class="easyui-numberbox style_input" data-options="required:true,precision:0,groupSeparator:','" id="TxtPrice" name="TxtPrice" /><span>元</span>
</td>

<td align="right">
折扣率
</td>
<td align="left">
<input type="text" class="easyui-numberbox style_input" data-options="required:true,precision:3,groupSeparator:','" readonly="readonly" id="TxtDiscountRate" name="TxtDiscountRate" /><span>%</span>
</td>
两个都是只读属性,我在js中写了
$(function () {

// 在IE下,如果在readonly的input里面键入backspace键,会触发history.back(), 用以下jquery代码修正之
$("input[readOnly]").keydown(function (e) {
e.preventDefault();
});

});
结果,按backspace键时,订单价格对应的文本会返回,而折扣率对应的文本不会返回
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
guolingguo1
JavaScript 87,984 成员 224,680 内容