Fork me on GitHub
摘要: log_format custom '$remote_addr - $remote_user [$time_local] ' '"$request" $status $request_time $body_bytes_sent ' '"$http_referer" "$http_user_agent 阅读全文
posted @ 2016-10-28 20:08 明天后浪 阅读(126) 评论(0) 推荐(0) 编辑
摘要: //数组的组合 Array.prototype.combinate = function(iItems, aIn) { if (!aIn) { var aIn = new Array(); this.combinate.aResult = new Array(); } for (var i = 0; 阅读全文
posted @ 2016-10-11 15:55 明天后浪 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1.sublime 中有一个htmlprettify 插件 这个插件 可以用来格式化 html css js 使我们的代码看着比较美观 ctrl + shift + h 这个快捷方式是美化代码间距的 我们可以调节里面的设置 右键 -> html/css/js prettyfiy (这个只有装了插件右 阅读全文
posted @ 2016-09-28 23:49 明天后浪 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 尝试安装公司工作环境 , 从0开始,记录一下流程 以备后用。 1.装机,ubuntu装机比较简单 环境(已经是一台ubuntu机器上) 重新安装 清空所有文件 F2 在重启的时候按,然后会选择语言,选择中文 ,然后会选择安装的选项 一路点击 非常明确的提示,可以安装成功 2.装sogo输入法 装ch 阅读全文
posted @ 2016-09-18 14:48 明天后浪 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 简单介绍下ng-annotate这个项目,这个项目正好提供了gulp的插件。 gulp配置文件: 阅读全文
posted @ 2016-08-26 12:20 明天后浪 阅读(491) 评论(0) 推荐(0) 编辑
摘要: toast: function(msg) { var str = "<div class='toast' style='display:none'>" + msg + "</div>"; $('body').append(str); $('.toast').stop().fadeIn(100).de 阅读全文
posted @ 2016-08-12 10:28 明天后浪 阅读(277) 评论(0) 推荐(0) 编辑
摘要: <p>table控制:<!-- height为横线的粗度,width为长度 --><table width=700> <tr> <td>横线</td></tr><tr bgcolor='red' height=3> <td></td></tr></table><!-- height为竖线的长度,wi 阅读全文
posted @ 2016-07-15 15:40 明天后浪 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: document.getElementById('wx_share_img').style.cssText = "width:100%;height:100%;position:fixed;top:0;margin left: 50%:left:50%;" document.getElementBy 阅读全文
posted @ 2016-07-12 20:46 明天后浪 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在head标签中加入 [ng cloak] { display: none !important; } 在页面的body标签上添加 ng cloak 可以解决页面上先后加载闪烁问题 阅读全文
posted @ 2016-07-07 12:38 明天后浪 阅读(355) 评论(0) 推荐(0) 编辑
摘要: requrejs 可以解决的问题: 1.逻辑比较复杂的js可能会有上千行js代码 此时我们开发和维护起来会有非常大的难度和不方便的地方,所以我们用requirejs模块化js 2.可以异步加载js,如果有需要同步的地方也可以实现 避免同步加载js延缓页面加载速度问题 requrejs 目录: req 阅读全文
posted @ 2016-07-06 16:08 明天后浪 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 这段js 需要置于页面上端 也就是 需要先加载js然后加载页面 (这段js是原生js而且比较短小 基本对页面加载速度无影响) FontResize : function(maxWidth){ (function() { function o() { document.documentElement. 阅读全文
posted @ 2016-07-06 10:49 明天后浪 阅读(238) 评论(0) 推荐(0) 编辑
摘要: CSS,font-family,好看常用的中文字体 例1(小米米官网):font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif; 例2(淘宝技术研发中心):font: 12px/1.5 Tahoma,Helvetica,Arial,'宋 阅读全文
posted @ 2016-07-05 11:03 明天后浪 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1.当从第三方软件需要分享到微信的时候 需要给授权处理才能获得微信信息 比如 nickname 等昵称图像等 从第三方登陆跳转到微信分享页需要 shareurl = http://open.weixin.qq.com/commect/oauth2/....+redirect_uri=.....+.. 阅读全文
posted @ 2016-06-30 10:12 明天后浪 阅读(246) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>ment</title> <script src="time.js"></script></head><body> <div id="countdown"></di 阅读全文
posted @ 2016-06-28 00:44 明天后浪 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 兼容性记录: IE 8+ Latest Stable: Firefox, Chrome, Safari iOS 6-8 Android 4.x 1. 阅读全文
posted @ 2016-06-14 18:07 明天后浪 阅读(389) 评论(0) 推荐(0) 编辑