Littlombie's Nirvana

Novelty is the great parent of pleasure.


  • Home

  • Archives53

  • Tags31

  • About

  • Nirvana

vue-cli移动端px生成转rem

Posted on 2018-06-03 | In vue

vue做移动端适配,借助px2rem 插件方便的将px单位转为了rem。

1、安装

1
npm install px2rem-loader  lib-flexible --save

2、

在项目入口文件main.js中引入lib-flexible

1
import 'lib-flexible/flexible.js'
Read more »

AngularJS的模块化实现

Posted on 2017-12-26 | Edited on 2018-01-03 | In Angularjs

AngularJS的模块化实现

image

Read more »

【AngularJS】解决ng-if中的ng-model值无效的问题

Posted on 2017-12-25 | In Angularjs

与其他指令一样,ng-if指令也会创建一个子级作用域,因此,如果在ng-if指令中添加了元素,并向元素属性增加 ng-model指令,那么ng-model指令对应的作用域属性子级作用域,而并非控制器注入的$scope作用域对象,这点在进行双向数据绑定时,需要引起注意。

Read more »

自动化构建工具-Gulp

Posted on 2017-09-29 | In web

为什么要自动化

自动化是把源码合并压缩,合并之后就能减少http请求 ,压缩后能减少带宽,这是移动端十分需要的

自动化工具:gulp.js

优点:基于流、任务化

常用的API:src dest watch task pipe

  • src :读取文件和文件夹
  • dest:生成文件
  • watch:监控文件
  • task:定制任务
  • pipe:流的方式处理文件

官网: www.gulpjs.com.cn

Read more »

1…678…14
Littlombie

Littlombie

Said less to do more!

53 posts
11 categories
31 tags
RSS
GitHub Weibo Zhihu webSite
Creative Commons
© 2020 Littlombie
Powered by Hexo v3.9.0
|
Theme – NexT.Mist v6.4.2