用Jquery easyUI ,IE7下列表显示不了,总提示缺少标识符、字符串或数字。而google,maxthon,firefox,IE10等却没有问题。原因是Json末尾多了个逗号。IE7下json末尾不能有逗号,其它浏览器则可有可无。如:function getQueryCondition()...
分类:
其他好文 时间:
2015-10-14 19:28:37
阅读次数:
142
(1)用expression 鼠标滑过变色: <style type="text/css"> <!--? table?{?background-color:#000000;?cursor:hand;?width:100%;?} td?{ onmouseover: expression(onmouseover=function (){this.style.bo...
分类:
Web程序 时间:
2015-10-14 18:16:28
阅读次数:
327
对于$controller ,用来初始化controllers的。 $controller(constructor,locals,later,ident) 对于 constructor 参数: if called with a function then it‘s 对于 locals 参数: injection locals for controlle...
分类:
其他好文 时间:
2015-10-14 18:13:58
阅读次数:
173
function foo(arg1, arg2, arg3){ alert(art1 + arg2 + arg3); } foo.call(this,?arg1,arg2,arg3)?==?foo.apply(this,?arguments)?==?this.foo(arg1,?arg2,?arg3) call , apply 都属于 Function.prototy...
分类:
移动开发 时间:
2015-10-14 18:13:53
阅读次数:
190
iframe对应的div: 记录 点击加载页面到iframe。对应的js://iframe自适应高,onload会在iframe没加载完时就触发,所以要加上setTimeout,防止自适应高度出现为零的情况function autoHeight() { setTi...
分类:
其他好文 时间:
2015-10-14 18:11:22
阅读次数:
224
有如下div: 银行卡校验 调用一下方法弹出该div//遮罩层function popupDiv(div_id) { divid = div_id; var div_obj = $("#" + div_id); var windowWi...
分类:
其他好文 时间:
2015-10-14 18:07:18
阅读次数:
142
说明:由于Repeater控件是动态绑定,通过Id获取数据只能默认获取第一行;1.对Repeater中div设置样式2.通过$(".css").each(function(){dosome();})循环出样式为css的所有数据;比如根据不同数据值才显示不同的背景颜色;效果:4.如果有翻页的话,可以到...
分类:
Web程序 时间:
2015-10-14 18:05:13
阅读次数:
220
if (!window.xxxx) window.xxxx= {};(function () { xxxx.console = { alert: function (msg) { GenerateHtml("alert", "提示", msg); ...
分类:
其他好文 时间:
2015-10-14 18:03:27
阅读次数:
150
1.document.body.onmousewheel这个事件在火狐下要这样写document.body.addEventListener("DOMMouseScroll", function(event) {});并且非火狐用e.deltaY判断方向,火狐用下e/detail判断方向2.fade...
分类:
Web程序 时间:
2015-10-14 17:54:44
阅读次数:
145
2015年10月14日 16:42:22从网上扒的, 删掉了一小段无用代码, 修改了一行判断省份的代码 1 /* 2 * 身份证号验证(兼容15,18位) 3 */ 4 function checkIdentityCode($idcard) 5 { 6 $idcard = trim($i...
分类:
其他好文 时间:
2015-10-14 17:51:14
阅读次数:
145