10 2017 档案

摘要:一、安装grunt: npm install -g grunt-cli //安装 npm install grunt –save-dev //安装Grunt最新版本到项目目录中,并将其添加到devDependencies内 grunt –version //出现grunt -cli 和 grunt的 阅读全文
posted @ 2017-10-24 20:59 DaivdAndLemon 阅读(194) 评论(0) 推荐(0)
摘要:一、摇一摇功能 二、加速传感器API 本文档旨在通过介绍HTML5 DeviceOrientation 和DeviceMotion两个接口的使用,来实现某些场景应用,如 摇一摇功能(DeviceMotion) 重力感应方向控制(DeviceOrientation) 关于DeviceOrientati 阅读全文
posted @ 2017-10-11 10:06 DaivdAndLemon 阅读(447) 评论(0) 推荐(0)
摘要:一、文档间的通信 postMessage对象 //不跨域 1、iframe:obj.contentWindow [iframe中的window对象] iframe拿到父级页面的window: parent(上一层window) top(最顶层window) 2、window.open() 返回值是新窗口的window对象 拿... 阅读全文
posted @ 2017-10-06 22:59 DaivdAndLemon 阅读(316) 评论(0) 推荐(0)