随笔分类 -  javascript

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