摘要: 1. [文档](http://tntim96.github.io/JSCover/manual/manual.xml)1. [下载](https://sourceforge.net/projects/jscover/files/),解压2. 安装java , [下载地址](http://www.or 阅读全文
posted @ 2016-09-08 15:54 lhy031 阅读(2921) 评论(1) 推荐(0) 编辑
摘要: 1. 安装chrome插件:Vue.js devtools(https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd?hl=zh-CN) 2. 下载vue-devtools (h 阅读全文
posted @ 2016-09-08 15:52 lhy031 阅读(5438) 评论(2) 推荐(2) 编辑
摘要: 什么是单元测试 每个单元测试就是一段用于测试一个模块或接口是否能达到预期结果的代码。 QUnitjs 概念Qunit是一款强大的用于帮助调试代码的,JavaScript单元测试框架。是jQuery的官方测试套件,不仅如此,QUnit还可以测试任何常规JavaScript代码,甚至可以通过一些像Rhi 阅读全文
posted @ 2016-08-31 11:10 lhy031 阅读(652) 评论(0) 推荐(1) 编辑
摘要: 插件:i18n 项目管理工具:grunt 需安装: grunt 和properties-reader(i18n运行依赖) 7.实现根据浏览器默认语言环境来加载不同的地址,在页面上也可以切换不同语言:解决方法,设置cookie.代码如下: if (!getCookie('chuan')) { setC 阅读全文
posted @ 2016-08-29 14:47 lhy031 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 例子:https://aquarius1993.github.io/blog/ 仓库:https://github.com/Aquarius1993/blog (前提是已经安装Xcode和git) 1. 安装 2. 创建项目 3. 进入项目,创建新笔记 4. 启动,在 localhost:4000 阅读全文
posted @ 2016-08-24 09:42 lhy031 阅读(258) 评论(0) 推荐(0) 编辑
摘要: grunt例子:https://github.com/Aquarius1993/gruntDemo grunt 实时刷新1: 1.安装chrome浏览器插件:liveReload 2.npm install grunt-contrib-watch connect-livereload --save- 阅读全文
posted @ 2016-08-11 15:54 lhy031 阅读(488) 评论(0) 推荐(0) 编辑
摘要: this 的工作原理 JavaScript 有一套完全不同于其它语言的对 this 的处理机制。 在五种不同的情况下 ,this 指向的各不相同。 第一种:全局范围内 this; 当在全部范围内使用 this,它将会指向全局对象window。 第二种:函数调用 foo(); 这里 this 也会指向 阅读全文
posted @ 2016-08-05 15:58 lhy031 阅读(250) 评论(0) 推荐(1) 编辑
摘要: gulp例子:https://github.com/Aquarius1993/gulpDemo 淘宝镜像:$ npm install -g cnpm --registry=https://registry.npm.taobao.org 一 入门: npm: node package manager( 阅读全文
posted @ 2016-08-05 15:51 lhy031 阅读(1974) 评论(0) 推荐(0) 编辑
摘要: /****************************************************************************** 数据类型判断 - typeof *******************************************************************************/ console.log('数据类型判断 - ... 阅读全文
posted @ 2016-08-05 15:50 lhy031 阅读(209) 评论(0) 推荐(0) 编辑
摘要: //引入包 <script type="text/javascript" src='../template.js'></script> //定义一个有ID的script标签: <script id='tem' type="text/html"> <h4>{{name}}</h4> <ul> {{ea 阅读全文
posted @ 2016-08-05 15:49 lhy031 阅读(200) 评论(0) 推荐(0) 编辑