摘要: $(receipts.formid).form({ onLoadSuccess: function (data) {//这个loadsuccess一定要写在'load'之前,要不不执行 $(receipts.formid + ' .wuliuid').combobox('setText', rece 阅读全文
posted @ 2020-03-01 22:06 新云优 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 所谓为了支持某属性的子属性,主要为了解决。在服务器返回的json格式的数据的某个属性带有自属性,而我们恰恰又需要使用到该子属性作为我们的datagrid的某个字段的。默认情况下datagrid只能支持一级属性字段(属性的属性字段属于二级字段)。 对于这个问题的解决方案有两种方式 1、就是更改esay 阅读全文
posted @ 2020-02-29 13:59 新云优 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: min: 0.5,//最小0.5 required: true, precision: 1,//小数点后精度为1位 阅读全文
posted @ 2020-02-29 09:20 新云优 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 以下为官方数据,不需要其他文件即可实现编辑数据 <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Row Editing in DataGrid - jQuery EasyUI Demo</title> <link rel="styl 阅读全文
posted @ 2020-02-29 08:00 新云优 阅读(415) 评论(0) 推荐(0) 编辑
摘要: loadFilter: function (data) { if (data.error != undefined) { $.messager.alert('数据加载出错', data.error); return { 'total': 0, 'rows': [] }; } else { retur 阅读全文
posted @ 2020-02-29 07:49 新云优 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: var dg = '#goods-dg'; var index = $(dg).datagrid('getRowIndex', goods.row.sortid); if (index > -1) {//这里显示错在 $('#goods-dg').datagrid('selectRow', inde 阅读全文
posted @ 2020-02-29 06:54 新云优 阅读(818) 评论(0) 推荐(0) 编辑
摘要: sortable="true" order="desc" 或者 sortable:true,order:'desc' 阅读全文
posted @ 2020-02-27 21:39 新云优 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 一、substr 方法 返回一个从指定位置开始的指定长度的子字符串。string.substr(start [, length ]) 注意: length可选项。如 length 为 0 或负数,将返回一个空字符串。如果没有指定该参数,则子字符串到 string 的最后。 let words = $ 阅读全文
posted @ 2020-02-27 16:56 新云优 阅读(690) 评论(0) 推荐(0) 编辑