随笔分类 -  js

Ext.js二级联动
摘要: 阅读全文
posted @ 2019-04-25 09:51 o_0的园子 阅读(645) 评论(0) 推荐(0)
wangeditor的使用
摘要:http://www.wangeditor.com/ 设置不可编辑 阅读全文
posted @ 2019-04-23 15:58 o_0的园子 阅读(589) 评论(0) 推荐(0)
Ext.js给form加背景图片
摘要:{ iconCls: 'zyl_icons_showdetail', tooltip: '查看', handler: function(gridView, rowIndex, colIndex) { var rowInfo = gridView.up('grid... 阅读全文
posted @ 2019-03-29 14:13 o_0的园子 阅读(605) 评论(0) 推荐(0)
Ext.js数据展示问题name展示code
摘要:出现以上问题是因为model中定义的类型跟数据库不匹配 去掉js中vehicleModel的type或者改为type:'int'即可。 阅读全文
posted @ 2019-02-26 17:40 o_0的园子 阅读(304) 评论(0) 推荐(0)
js中取绝对值的2种方法!
摘要:1、abs() var aaa=-20; var bbb=Math.abs(aaa); 2、加减法 var aaa=-20; var bbb=-aaa 阅读全文
posted @ 2019-01-28 15:21 o_0的园子 阅读(22656) 评论(0) 推荐(1)
颜色代码
摘要: 阅读全文
posted @ 2019-01-17 16:25 o_0的园子 阅读(277) 评论(0) 推荐(0)
js获取当前时间的前一天/后一天
摘要:Date curDate = new Date(); var preDate = new Date(curDate.getTime() - 24*60*60*1000); //前一天 var nextDate = new Date(curDate.getTime() + 24*60*60*1000); //后一天 阅读全文
posted @ 2018-12-28 17:16 o_0的园子 阅读(4345) 评论(0) 推荐(0)
Ext修改Confirm弹框按钮的默认值
摘要: 阅读全文
posted @ 2018-12-26 15:08 o_0的园子 阅读(532) 评论(0) 推荐(0)
ExtJS前端框架EXT弹出窗口事件
摘要:https://blog.csdn.net/alsyuan/article/details/73240841 Ext.MessageBox.alert()Ext.MessageBox.alert()提供一个OK按钮。对应JavaScript中的alert()。 定义:alert( Stringtit 阅读全文
posted @ 2018-12-26 12:54 o_0的园子 阅读(2703) 评论(0) 推荐(0)
Ext.js双击事件
摘要:/** * 联系人列表panel */ Ext.define('Op.OpBill.OpBillCustLinkGridPanel', { extend: 'Ext.grid.Panel', id: 'Op_OpBill_OpBillCustLinkGridPanel_ID', title: '联系人信息', frame: true, height: ... 阅读全文
posted @ 2018-12-11 11:47 o_0的园子 阅读(1263) 评论(0) 推荐(0)
前端传list,springmvc接收list的方法
摘要:controller接收list 阅读全文
posted @ 2018-11-21 15:25 o_0的园子 阅读(5975) 评论(0) 推荐(0)
ExtJs 滚动条问题
摘要:bodyStyle :'overflow-x:visible;overflow-y:scroll', //隐藏水平滚动条 通过这个方法可以显示或隐藏滚动条 var form = new Ext.form.FormPanel({ frame : true, labelWidth : 80, height : 400, autoScroll : true, bodyStyle... 阅读全文
posted @ 2018-11-17 10:57 o_0的园子 阅读(515) 评论(0) 推荐(0)
json在线格式化地址
摘要:https://www.json.cn/ 阅读全文
posted @ 2018-07-19 17:52 o_0的园子 阅读(165) 评论(0) 推荐(0)
记一次代码优化
摘要:一. 证件号码校验规则需求 1、 非空 2、 长度 3、 符合相应证件类型号码生成规则,比如居民身份证号必须为十八位阿拉伯数字和英文字母等规则要求。 身份证规则: 1) 18位 2) 前17位号码为数字,18位为数字或X,正则参考:(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d| 阅读全文
posted @ 2018-07-15 15:54 o_0的园子 阅读(286) 评论(0) 推荐(0)
Ext.js各种提示框
摘要:https://www.cnblogs.com/judgelee/archive/2012/12/18/2822967.html 阅读全文
posted @ 2018-03-21 09:03 o_0的园子 阅读(290) 评论(0) 推荐(0)
如何用jquery获取input输入框中的值?
摘要:如何用jquery获取<input id="test" name="test" type="text"/>中输入的值? $(" #test ").val() $(" input[ name='test' ] ").val() $(" input[ type='text' ] ").val() $(" 阅读全文
posted @ 2018-03-20 10:26 o_0的园子 阅读(2255) 评论(0) 推荐(0)
js给<img>的src赋值问题
摘要:原生JS:document.getElementById("imageId").src = "xxxx.jpg";jquery:$("#imageId").attr("src","xxxx.jpg"); 阅读全文
posted @ 2018-03-19 10:52 o_0的园子 阅读(5516) 评论(0) 推荐(1)