摘要:
Meta Property=og标签是什么呢?og是一种新的HTTP头部标记,即Open Graph Protocol:The Open Graph Protocol enables any web page to become a rich object in a social graph.即这种 阅读全文
摘要:
第一步:项目目录下安装babel-cli和babel-preset-es2015。 1. cnpm install --save-dev babel-cli 2. cnpm install --save-dev babel-preset-es2015 第二步:配置编译规则。 项目根目录下新建文件.b 阅读全文
摘要:
::-webkit-scrollbar-thumb{ } 阅读全文
摘要:
UI:User Interface 用户界面 用户界面其实是一个比较广泛的概念,指人和机器互动过程中的界面,以车为例子,方向盘、仪表盘、换档器等都属于用户界面。现在一般把屏幕上显示的图形用户界面(GUI :Graphic User Interface)都简单称为UI。可能是UI这个概念比较难以被一般 阅读全文
摘要:
Project description (A Vue.js project):项目描述(一vue.js项目) Author:作者 Vue build standalone:Vue公司建立独立 Install vue-router?:安装路由 Use ESLint to lint your code? 阅读全文
摘要:
function overload(){ var length = arguments.length; //判断参数个数 if(length==2){ console.log(arguments[0] + arguments[1]); return false; } if(length==3){ c 阅读全文
摘要:
1.onfocus():当元素获取到焦点的时候触发 2.onblur():当元素失去焦点时触发 3.focus():给指定的元素设置焦点 例如:obj.focus 4.blur():取消指定元素的焦点:obj.blur 5.select():选择元素里面的文本内容 6.event():事件对象 兼容 阅读全文
摘要:
BOM是browser object model的缩写,简称浏览器对象模型。 阅读全文
摘要:
转载于(支持作者) https://github.com/TooBug/javascript.patterns/blob/master/chapter2.markdown#%E5%BF%98%E8%AE%B0var%E6%97%B6%E7%9A%84%E5%89%AF%E4%BD%9C%E7%94% 阅读全文
摘要:
/** 智能机浏览器版本信息:**/var browser={ versions:function(){ var u = navigator.userAgent, app = navigator.appVersion; return {//移动终端浏览器版本信息 trident: u.indexOf 阅读全文