摘要: 当加入/g后,就是匹配所有,不加的时候只是匹配第一个 阅读全文
posted @ 2013-08-15 15:38 玉伽 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-15 09:22 玉伽 阅读(718) 评论(0) 推荐(0) 编辑
摘要: Error1: 2003:Can't connect to MySQL server on 'localhost'解决方法:关闭Linux的防火墙功能,或者设置容许TCP协议的3306端口通过,可以下使用如下命令开启TCP协议的3306端口。[root@bugzilla~]#more/etc/sysconfig/iptables。 -ARH-Firewall-1-INPUT-ptcp--dport3306-jACCEPT。Error2: 1130 - Host'ClientIP' is not allowed to connect to this MyS 阅读全文
posted @ 2013-08-13 11:37 玉伽 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 无标题 1我是第一个Div我是第二个Div 阅读全文
posted @ 2013-07-08 16:45 玉伽 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 基本设置: 名称: 描述: <fieldset style="border:1px solid #EBEBEB;"> <legend>基本设置:</legend> <label style="line-height:26px;" class="trcls_3">名称:</label> <input style="margin-left:24px;" class="easyui-validatabox" id=... 阅读全文
posted @ 2013-05-09 16:49 玉伽 阅读(770) 评论(0) 推荐(0) 编辑
摘要: formatter:function(value){if(String(value)=="1"){return'<spanclass="iconicon-enable"></span>';}elseif(String(value)=="0"){return'<spanclass="iconicon-disable"></span>';}},editor:{type:'checkbox',options:{on:1,off 阅读全文
posted @ 2013-04-25 13:28 玉伽 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 加载顺序问题,现在div上加上style="display:none;"然后在加载组件的js处用.show() $('#virtual_server_1').show().panel({ title: '基本属性', collapsible:true, iconCls:'icon-wafa' });ok 阅读全文
posted @ 2013-04-09 09:29 玉伽 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 具体不清楚是从哪个版本开始的了,加入了loadFilter属性,很方便,用法如下: loadFilter:function(data){ if(1){ $.messager.show({ msg : data.message, title : "提示", icon:"info" }); return data; } }data为返回json数据,处理之后记得要return,否则就不能继续执行了 阅读全文
posted @ 2013-03-29 08:57 玉伽 阅读(699) 评论(0) 推荐(0) 编辑
摘要: django json 汉字乱码 阅读全文
posted @ 2013-03-28 12:01 玉伽 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: var dataObj=eval("("+data+")");data为从后台传过来的json对象 阅读全文
posted @ 2013-03-27 15:31 玉伽 阅读(131) 评论(0) 推荐(0) 编辑