随笔分类 - javascript
摘要:$('.d-game-pic').css('background-image', 'url(' + App.getImg(gameDetail.desc_pic) + ')');
阅读全文
摘要:document.write("整数转换函数:parseInt(数据,底数)"); document.write("10101=>" + parseInt("10101",2)+""); document.write("77=>" + parseInt("77",8)+""); document....
阅读全文
摘要:jsloadercssloader使用方法 把css结合起来了,具体实现有空研究研究地址:http://sae.sina.com.cn/ssl/static/script/sinacloud_sso.js?v=v2.2.3=============================思考一个问题high...
阅读全文
摘要:原本只为了日期范围选择器看下sae的前端怎么实现然后。。。公共函数两个文件,第一个是各种插件:typeahead.js 自动完成 //关键词自动完成 $('#page-auto-complete').typeahead({ name: 'twitte...
阅读全文
摘要:demo地址 http://www.oschina.net/p/reactnativehttp://my.oschina.net/luyongfugx/blog/394427#OSC_h1_1 翻译得很好深入浅出react nativehttp://www.cocoachina.com/ios/20...
阅读全文
摘要:安装spm 下载sea.js运行spmnpm install spm@2.x -gnpm install spm-build -g下载sea.jsgit clonehttps://github.com/seajs/examples.gitcdexamples/static/hellospm-buil...
阅读全文
摘要:变量 @color1:#fff;选择器// Variables@mySelector: banner;// Usage.@{mySelector} { font-weight: bold; line-height: 40px; margin: 0 auto;}图片域名// Variables@...
阅读全文
摘要:demo地址 http://www.qq210.com/shoutu/android 1.下载less包,官网 2.引入less文件 3.引入config.js 3.引入less.js 4.less.watch();开启观察者模式, config.js test.html
阅读全文
摘要:function Person(name){ this.name = name;}Person.prototype = { say: function(){ alert('hi'); }, sayName: function(){ alert(this.name); }};fu...
阅读全文
摘要:添加时间戳给callbackId $.ajax({ type: "get", url: url, timeout: 6000, data: param, cache: false, dataType: "jsonp", jsonpCallback: "jsoncallback" + ...
阅读全文
摘要://获取域名host = window.location.host;host2=document.domain;//获取页面完整地址url = window.location.href;document.write("host="+host)document.write("host2="+host2...
阅读全文
摘要:function rgb2hex(rgb) { rgb = rgb.match(/^rgb\((\d+),(\d+),(\d+)\)$/); function hex(x) { return ("0" + parseInt(x).toString(16)).slice(-2); } ret...
阅读全文
摘要:emo_album_id: name: Upload Image: SentenceMovie[photo] ...
阅读全文
摘要:移动web 上传文件: 预览: 兼容ie版本 function change() { var pic = document.getElementById("preview"); var file = document.getElementById("f"); var ext=file.value.substring(file...
阅读全文
摘要://---------------------对象 //1. var HomeContrl = function(){ this.foo = 'bar'; //对象方法 this.intro = function(){ alert(this.foo); } ...
阅读全文
摘要:Bootstrap 101 Template Email 效果图...
阅读全文