上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 收集资料如下判断: 1.判断undefined: ? 1 2 3 4 var tmp = undefined; if (typeof(tmp) == "undefined"){ alert("undefined"); } ? 1 2 3 4 var tmp = undefined; if (type 阅读全文
posted @ 2017-10-25 17:27 越来越好888 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1.全局安装 vue-cli,语句: npm install vue-cli -g 2. 查看帮助命令:vue --help 3. 使用模板方案: vue init webpack 文件项目名 eg:vue init webpack vuedemo3 阅读全文
posted @ 2017-06-16 17:52 越来越好888 阅读(152) 评论(0) 推荐(0) 编辑
摘要: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>CSS3实现会呼吸的灯</title> <style type="text/css"> body, div, dl, dt, dd, u 阅读全文
posted @ 2017-06-09 17:11 越来越好888 阅读(1370) 评论(0) 推荐(1) 编辑
摘要: 1.浏览器的同源策略:域名,协议,端口均相同,叫做同源 举个例子: 2.跨域:浏览器不能执行其他网站的脚本 3.解决跨域的方法: (1)JSONP JSONP的原型:创建一个回调函数,然后在远程服务上调用这个函数并且将JSON 数据形式作为参数传递,完成回调。 将JSON数据填充进回调函数 举个例子 阅读全文
posted @ 2017-06-06 11:35 越来越好888 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 程序运行时间差: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scal 阅读全文
posted @ 2017-06-02 17:43 越来越好888 阅读(233) 评论(0) 推荐(0) 编辑
摘要: // 多个js压缩成一个js // Project configuration. module.exports = function(grunt) { // 使用严格模式 'use strict'; // 这里定义我们需要的任务 grunt.initConfig({ pkg: grunt.file. 阅读全文
posted @ 2017-05-25 16:11 越来越好888 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: requirejs主要是为了模块化开发,这样带来的好处不言而喻。但是分成多个js文件增加了请求数,那么就要用到合并压缩。合并压缩了原来的许多独立的js模块,那requirejs又是怎么冲压缩的文件中找到各个独立的模块进行加载的呢,感觉两者有点冲突,这个问题想了很久也假想了很多可能。在知乎上找到了一个 阅读全文
posted @ 2017-05-25 11:30 越来越好888 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 区别ie6~8的方法是: width:10px;//chrome width:10px\9;//ie8+ *width:10px;//ie7 _width:10px;//ie6 区别ie8以下和ie9+的方法是 body{width:10px\9;}//ie8 :root body{width:10 阅读全文
posted @ 2017-05-16 14:34 越来越好888 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 9.seajs构建的问题 01.png和02.jpg 10.seajs与grunt如何结合开发。两个插件:grunt-cmd-transport grunt-cmd-contact ,去grunt官网上查并下载 03.png 将代码暂存到.build的文件中,执行任务后,则自动提取出依赖。然后再将这 阅读全文
posted @ 2017-05-10 18:34 越来越好888 阅读(242) 评论(0) 推荐(0) 编辑
摘要: seajs是模块化加载框架。seajs.org已经打不开了,seajs的github。seajs速查文档 <!--如果完成下面4步,则seajs掌握了80%js模块化1.引入seajs的库 :<script type="text/javascript" src="sea/sea.js"></scri 阅读全文
posted @ 2017-05-08 16:23 越来越好888 阅读(209) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页