摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>flex实现流式 阅读全文
posted @ 2022-04-01 00:16 xiaorain124 阅读(79) 评论(0) 推荐(0)
摘要: 深入理解jQuery中的Deferred 引入 1 在开发的过程中,我们经常遇到某些耗时很长的javascript操作,并且伴随着大量的异步。 2 比如我们有一个ajax的操作,这个ajax从发出请求到接收响应需要5秒,在这5秒内我们可以运行其他代码段,当响应到达后,我们需要判断响应的结果(无非就是 阅读全文
posted @ 2022-03-04 22:59 xiaorain124 阅读(86) 评论(0) 推荐(0)
摘要: 1.先清除缓存 npm cache clean --force 2.删除项目中的node_modules文件夹 3.安装淘宝镜像cnpm,用cnpm来安装依赖 npm install -g cnpm --registry=https://registry.npm.taobao.org 4.最后再执行 阅读全文
posted @ 2021-11-12 17:09 xiaorain124 阅读(252) 评论(0) 推荐(0)
摘要: const minJs = require('uglify-es'); pipe(htmlmin({ removeComments: true, collapseWhitespace: true, minifyCSS: true, minifyJS: function(text) { return 阅读全文
posted @ 2021-11-12 16:07 xiaorain124 阅读(142) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <title>千锋教育——做真实的自己,用心做教育</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewpo 阅读全文
posted @ 2021-11-11 18:52 xiaorain124 阅读(23) 评论(0) 推荐(0)
摘要: JS的基本介绍 简介;JavaScript一种在浏览器中解释运行的脚本语言,它的解释器被称为JavaScript引擎,为浏览器的一部分,是广泛用于客户端的脚本语言,最早是在 HTML网页上使用,用来给HTML(HTML5)网页增加动态功能。在1995年时,由Netscape公司的Brendan Ei 阅读全文
posted @ 2021-07-24 21:35 xiaorain124 阅读(30) 评论(0) 推荐(0)
摘要: mysqld install MySQL下载与安装 一、下载 地址:https://dev.mysql.com/downloads/mysql/ 当前最新是8.0版本,我选择上一个最新的mysql-5.7.24-winx64.zip 二、安装 MySQL安装文件分两种 .msi和.zip ,.msi 阅读全文
posted @ 2021-03-05 11:57 xiaorain124 阅读(70) 评论(0) 推荐(0)
摘要: (function($){ $.fn.numberRock=function(options){ var defaults={ speed:24, count:100 }; var opts=$.extend({}, defaults, options); var div_by = 100, cou 阅读全文
posted @ 2021-01-06 19:22 xiaorain124 阅读(84) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> .shop { position: fixed; top: 300px; left: 400px; } .ba 阅读全文
posted @ 2021-01-06 19:15 xiaorain124 阅读(55) 评论(0) 推荐(0)
摘要: 常用指令 v-text和v-html 用于页面渲染 v-bind v-bind后面是 :属性名=[变量名]。例如:v-bind:title="message" 例如: <div> <a v-bind:href="href">慕课网</a> </div> <div> <img v-bind:src=" 阅读全文
posted @ 2020-12-28 16:44 xiaorain124 阅读(56) 评论(0) 推荐(0)