1、用script去引入js外部文件,不要用link去引入;
2、当javascript里面有直接操作页面元素的代码时,将js放到body内引用即可。
editor 设置在列上:{ field: "loginname", width: 120, headerAlign: "center", allowSort: true, header: "员工账号",
editor: { type: "textbox", minValue: 0, maxValue: 200, value: 25} }
1、用script去引入js外部文件,不要用link去引入;
2、当javascript里面有直接操作页面元素的代码时,将js放到body内引用即可。
editor 设置在列上:{ field: "loginname", width: 120, headerAlign: "center", allowSort: true, header: "员工账号",
editor: { type: "textbox", minValue: 0, maxValue: 200, value: 25} }