上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: swiper参数 let swiper1 = new Swiper('.swiper-container', { autoplay: 3000, observer:true,//修改swiper自己或子元素时,自动初始化swiper observeParents:true,//修改swiper的父元 阅读全文
posted @ 2019-03-15 10:59 gyz418 阅读(127) 评论(1) 推荐(0) 编辑
摘要: web 安全 XSS CSP CSRF 点击劫持 OAuth cdn /* * xss 攻击预防 * 目前地址栏的xss : http://xxx.html?name=<script>alert(1)</script> * 输入框,图片,富文本 * chrome 会自己转义 * * */ // 转义 阅读全文
posted @ 2018-12-17 14:10 gyz418 阅读(202) 评论(2) 推荐(0) 编辑
摘要: 打开浏览器从输入网址到网页呈现出来,经历了什么? 1.1 DNS解析域名 1.2 TCP连接:TCP三次握手 1.3 发送HTTP请求 1.4 服务器处理请求并返回HTTP报文 1.5 浏览器解析渲染页面 1.6 断开连接: TCP四次挥手 1.网址 URL(Uniform Resource Loc 阅读全文
posted @ 2018-12-11 15:42 gyz418 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.构造函数 bind 面向对象,点击按钮,改变样式 /* * js基本类型 * * * 基本数据类型:在内存中占据固定大小的空间,被保存在栈内存中,值存储 * Undefined- Null- Boolean- Number- String * * 引用类型:保存在堆内存,引用存储 * Objec 阅读全文
posted @ 2018-12-03 10:54 gyz418 阅读(166) 评论(2) 推荐(0) 编辑
摘要: # git https://github.com/gyz418/test.git ## 拉代码 > git clone xx.git ## 设置git用户的名称和邮箱 > git config --global user.name "Your Name" <br/> > git config --g 阅读全文
posted @ 2018-11-22 17:46 gyz418 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1. canvas 描边、填充、画线、闭合路径、非零环绕原则 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>canvas</title> </head> <style> canvas { border: 1 阅读全文
posted @ 2018-11-14 09:59 gyz418 阅读(157) 评论(1) 推荐(0) 编辑
摘要: > 引用# 一级标题## 二级标题,总共六级标题- ul + li + li 1. 1232. 456 [链接](http://www.baidu.com)![图片](http://placekitten.com/200/198)**加粗** 阅读全文
posted @ 2018-11-02 16:22 gyz418 阅读(97) 评论(2) 推荐(0) 编辑
摘要: 1. fs读文件、写文件 // 1 fs读文件 var fs = require('fs') fs.readFile('./20180926 demo/a.text', function (err, data) { if (err) { console.log(err); } else { cons 阅读全文
posted @ 2018-09-27 09:36 gyz418 阅读(224) 评论(9) 推荐(0) 编辑
摘要: app.js 入门 let express = require('express'); let app = express(); let allowCrossDomain = function (req, res, next) { res.header('Access-Control-Allow-O 阅读全文
posted @ 2018-08-23 14:20 gyz418 阅读(332) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-08-15 09:39 gyz418 阅读(5) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 18 下一页