摘要: !(function(dependencies, factory) { //amd || cmd if (typeof define == 'function' && (define.cmd || define.amd)) { define(dependencies, function() { re 阅读全文
posted @ 2017-06-21 22:56 佛陀 阅读(168) 评论(0) 推荐(0) 编辑
摘要: (function(window, undefined) { var modules = {}; var Sky = { //定义模块的基本信息 // 1、模块名称, 2、模块的依赖, 3、产生实例的工厂 define: function(moduleName, dependencies, fact 阅读全文
posted @ 2017-06-21 21:54 佛陀 阅读(146) 评论(0) 推荐(0) 编辑
摘要: IE6识别 * 、_ IE7识别 * 、+ IE8识别 * 、\9,\0 只有IE8识别 \0/ ie9只识别:\9 FF什么都不识别 阅读全文
posted @ 2017-06-12 10:53 佛陀 阅读(113) 评论(0) 推荐(0) 编辑
摘要: var path = require('path');var webpack = require('webpack');var ExtractTextPlugin = require("extract-text-webpack-plugin");var HtmlWebpackPlugin = req 阅读全文
posted @ 2017-05-05 17:20 佛陀 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 第一阶段: HTML+CSS: HTML进阶、CSS进阶、div+css布局、HTML+css整站开发、 JavaScript基础: Js基础教程、js内置对象常用方法、常见DOM树操作大全、ECMAscript、DOM、BOM、定时器和焦点图。 JS基本特效: 常见特效、例如:tab、导航、整页滚 阅读全文
posted @ 2017-04-07 15:43 佛陀 阅读(182) 评论(0) 推荐(0) 编辑
摘要: var MYAPP = {};MYAPP.event = { addListener: null, removeListener: null};if (typeof window.addEventListener 'function') { MYAPP.event.addListener = fun 阅读全文
posted @ 2017-04-06 17:41 佛陀 阅读(196) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lyzg/p/5264028.html 阅读全文
posted @ 2017-03-29 16:36 佛陀 阅读(178) 评论(0) 推荐(0) 编辑
摘要: <audio style="display:none; height: 0" id="bg-music" preload="auto" src="../static/videos/bg-music.mp3" loop="loop"></audio> <audio style="display:non 阅读全文
posted @ 2017-03-29 14:54 佛陀 阅读(2241) 评论(0) 推荐(0) 编辑
摘要: 原生ajax 请求: function loadXMLDoc() { var xhr; var myJson = ""; var html = ""; if (window.XMLHttpRequest) { xhr = new XMLHttpRequest(); } else { xhr = ne 阅读全文
posted @ 2017-03-22 15:17 佛陀 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-02-09 14:58 佛陀 阅读(98) 评论(0) 推荐(0) 编辑