上一页 1 ··· 3 4 5 6 7

2015年3月24日

window open用法

摘要: //新窗口打开 window.open('http://www.111cn.net/', '_blank'); //当前窗口打开 window.open('http://www.111cn.net/', '_self'); 阅读全文

posted @ 2015-03-24 17:30 兰陵 阅读(134) 评论(0) 推荐(0)

js window对象下的方法

摘要: screenLeft和screenTop属性返回窗口相对于屏幕的X和Y坐标。网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的... 阅读全文

posted @ 2015-03-24 17:11 兰陵 阅读(277) 评论(0) 推荐(0)

js call apply的用法

摘要: 调用一个对象的一个方法,以另一个对象替换当前对象(其实就是更改对象的内部指针,即改变对象的this指向的内容)。即 “某个方法”当做“指定的某个对象”的“方法”被执行。Js代码call([thisObj[,arg1[, arg2[, [,.argN]]]]])参数thisObj可选项。将被用作当前对... 阅读全文

posted @ 2015-03-24 16:35 兰陵 阅读(142) 评论(0) 推荐(0)

JS中encodeURI,escape,encodeURIComponent区别

摘要: encodeURI()方法用于处理完整的URI,例如: Location.href=encodeURI(http://cang.baidu.com/do/s?word=中国&ct=21);传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。escape ... 阅读全文

posted @ 2015-03-24 14:58 兰陵 阅读(108) 评论(0) 推荐(0)

2012年9月4日

sencha touch 访问.net WebServices的方法

摘要: var resp = Ext.Ajax.request({ method: "post", headers: { 'Content-Type': 'application/json;utf-8' }, url: 'AppService.asmx/' + "getTradePackageDetail" + '?r=' + (new Date().getTime()) + Math.random(), async: true, //异步执行 success: function (response 阅读全文

posted @ 2012-09-04 12:00 兰陵 阅读(149) 评论(0) 推荐(0)

2012年8月29日

IEIE6下png透明问题解决

摘要: <style type="text/css"> img, div, input { behavior: url(js/iepngfix.htc) } div .l-douline{ behavior:url(js/iepngfix.htc)}</style><script language="JavaScript" type="text/javascript" src="js/iepngfix_tilebg.js"> </script>修改iepngfix.htc I 阅读全文

posted @ 2012-08-29 10:24 兰陵 阅读(139) 评论(0) 推荐(0)

2012年8月27日

IE火狐中获取KeyCode

摘要: <script language="javascript"> function onKeyPressBlockNumbers(e) { var key = window.event ? e.keyCode:e.which; alert(key); }</script><input type="text" onkeypress="return onKeyPressBlockNumbers(event);" /> 阅读全文

posted @ 2012-08-27 14:12 兰陵 阅读(142) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7

导航