阿富

web前端

导航

文章分类 -  txt笔记

【base.js】
摘要:'use strict'; require('./_init.js'); var moduleName = 'base', $p = Module.prototype; function Module() { if (!(this instanceof Module)) { return new Module(); } Object.defi... 阅读全文

posted @ 2017-04-17 10:19 阿富 阅读(141) 评论(0) 推荐(0)

【webpack】packge.json 、 webpack.config.js
摘要:【package.json】 { "name": "symbio", "version": "1.0.0", "description": "", "main": "webpack.config.js", "scripts": { "webpack": "webpack", "webpack-w": "webpack --w", &quo 阅读全文

posted @ 2017-04-17 10:13 阿富 阅读(93) 评论(0) 推荐(0)

【DOM】常用DOM API
摘要:【类型检测】 node.nodeType 9 | 1 var __nodeType = element && element.nodeType; if(__nodeType !== 1 && __nodeType !== 9){ return element; } node.tagName 'IMG' ... 【查找DOM-... 阅读全文

posted @ 2017-03-10 20:30 阿富 阅读(111) 评论(0) 推荐(0)

【html5】H5性能优化指南
摘要:浏览器渲染原理: 《深度剖析浏览器渲染性能原理,你到底知道多少?》 http://www.jianshu.com/p/a32b890c29b1 H5性能优化指南: 《干货|移动端H5前端性能优化》 http://www.jianshu.com/p/0a65c3d03591 requestAnimat 阅读全文

posted @ 2017-03-05 14:05 阿富 阅读(135) 评论(0) 推荐(0)

【html5】history、拖放、定位、Worker
摘要:历史记录 history //h5之前 history.length --- 返回历史列表中的网址数 history.back() --- 回退 history.forward() --- 前进 go(num) --- go(-1)、go(0)、go(1) //h5 pushState与replaceState仅仅是记录状态,如:滚动条状态... 阅读全文

posted @ 2017-02-26 22:56 阿富 阅读(137) 评论(0) 推荐(0)

【sublime】sublime配置
摘要:node.msi Ctrl + ~ + import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_pa... 阅读全文

posted @ 2016-09-20 02:46 阿富 阅读(123) 评论(0) 推荐(0)

【sass】sass基础
摘要:【ruby环境:安装/更新/卸载】 安装ruby:http://rubyinstaller.org/downloads 安装sass:gem install sass 取版本:sass -v 更新:gem update sass 卸载:gem uninstall sass 【命令】 文件夹:sass style/scss/:style... 阅读全文

posted @ 2016-08-30 23:34 阿富 阅读(136) 评论(0) 推荐(0)

【react】react入门
摘要:参考:http://www.ruanyifeng.com/blog/2015/03/react.html http://www.css88.com/react/docs/getting-started.html http://wiki.jikexueyuan.com/project/react/event-system.html 【HTML模板】 ... 阅读全文

posted @ 2016-08-21 17:19 阿富 阅读(87) 评论(0) 推荐(0)

【css3】css3
摘要:全局属性 initial,取浏览器默认值 --- ie-no 尺寸 运算:calc(100% - 20px) --- +-*/() --- 遇到+-时左右必须有空格,并且右边必须带单位(任何单位均可) 单位:em/rem、vw/vh/vmax/vmin ... 阅读全文

posted @ 2016-07-27 21:14 阿富 阅读(119) 评论(0) 推荐(0)

【XHR】XMLHttpRequest、XMLHttpRequest2
摘要:XMLHttpRequest对象 创建对象 var xhr = new XMLHttpRequest() //必须要new 属性(状态码) xhr.readyState 4:请求已完成,且响应已就绪 xhr.status 2xx:成功,请求被正确接收、理解、处理 3xx:重定向 30... 阅读全文

posted @ 2016-07-23 12:59 阿富 阅读(297) 评论(0) 推荐(0)

【html5】应用缓存、Web存储
摘要:====== ====== 应用缓存:applicationCache ====== ====== index.html 服务端(IIS) 添加MIME类型:.appcache text/cache-manifest 也许可用的后缀:.manifest | .application ... 阅读全文

posted @ 2016-07-14 22:18 阿富 阅读(117) 评论(0) 推荐(0)

【html5】html5
摘要:html5 html语法: 增加布尔值 hidden disabled readonly ... 单标签不允许写结束符,如:、、、、 ... 不建议的习惯:大小写都可以、有无引号都可以(带空格的属性必须要引号)、单双引号都可以、可... 阅读全文

posted @ 2016-07-14 22:16 阿富 阅读(129) 评论(0) 推荐(0)

【ES5】ECMAScript5笔记
摘要:ECMAScript5笔记 一、数据类型 6种数据类型 弱类型特性(类型转变、隐式转换 ...) Number() x - 0 parseFloat() parseInt() String() x + '' .toString() Boolean() !! ... 阅读全文

posted @ 2016-07-14 22:12 阿富 阅读(139) 评论(0) 推荐(0)