会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
far away from home
----missing in the dream
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2014年6月11日
ajax & jsonp & img
摘要: ajax 是一种请求服务器的方式,核心是XMLHttpRequest对象;优点是无需刷新页面,缺点是不能跨域请求。/* * Ajax direacted by Zakas * * Ajax.get("url?p=value", function (data) { // handle data },...
阅读全文
posted @ 2014-06-11 18:09 farawayfromhome
阅读(559)
评论(0)
推荐(0)
2014年6月10日
常见css的兼容问题
摘要: 链接的虚线框问题/* * a, img, input等标签点击时会带有虚线框 * 去除它*/.noDashedBox { outline:0; blur:expression(this.onFocus=this.blur());}固定定位/* css */.fixedTop { ...
阅读全文
posted @ 2014-06-10 17:54 farawayfromhome
阅读(436)
评论(0)
推荐(0)
2014年6月6日
JavaScript高级程序设计之JSON
摘要: IE8以下请求助神之Douglas Crockford:https://github.com/douglascrockford/json-jsJSON是一种格式化的字符串,特别适合在网络上传输,由Douglas Crockford发明。JSON语法可以表示三种类型的值: 简单值:字符串、数值、布尔值...
阅读全文
posted @ 2014-06-06 19:06 farawayfromhome
阅读(336)
评论(0)
推荐(0)
JavaScript高级程序设计之表单基础
摘要: A FORM textbox with maxlength reset submit表单的elements属性// 获取表单元素var form = document.getElementById("form");//...
阅读全文
posted @ 2014-06-06 17:03 farawayfromhome
阅读(433)
评论(0)
推荐(0)
2014年6月5日
Douglas Crockford: entityify & deentityify
摘要: 大神之字符与字符实体的相互转换方法// & to &if (!String.prototype.entityify) { String.prototype.entityify = function () { return this.replace(/&/g, "&...
阅读全文
posted @ 2014-06-05 23:00 farawayfromhome
阅读(425)
评论(0)
推荐(0)
微信分享到朋友圈的内容和图片的定制
摘要: // 微信分享到朋友圈的内容和图片的定制(function () { // data for weixin var dataForWeixin = { appId: "wx4654ffed0376f250", // ttfund app id imgUrl:...
阅读全文
posted @ 2014-06-05 19:11 farawayfromhome
阅读(666)
评论(0)
推荐(0)
APP常用检测
摘要: 检测设备、微信平台和app是否安装 // 检测是否安装了APPvar isappinstalled = (function () { return (location.search.indexOf("isappinstalled=1") !== -1); }()), ...
阅读全文
posted @ 2014-06-05 18:12 farawayfromhome
阅读(315)
评论(0)
推荐(0)
html meta
摘要: 示例用法 tinyCss--my css study tidy 提示一:viewport, 当你的页面有宽度时,比如宽度为10...
阅读全文
posted @ 2014-06-05 14:17 farawayfromhome
阅读(364)
评论(0)
推荐(0)
2014年5月30日
JavaScript高级程序设计之EventUtil
摘要: 简单的通用事件方法var EventUtil = { getEvent: function (e) { return e || window.event; }, getTarget: function (e) { return e.target || e...
阅读全文
posted @ 2014-05-30 19:09 farawayfromhome
阅读(489)
评论(0)
推荐(2)
2014年5月29日
JavaScript高级程序设计之元素大小
摘要: 1、偏移量// 元素相对于文档的偏移量var getOffSet = function (ele) { var actualLeft = ele.offsetLeft, // 相对于offsetParent元素的左位移 actualTop = ele.offsetTop, ...
阅读全文
posted @ 2014-05-29 18:15 farawayfromhome
阅读(326)
评论(1)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告