httponly:如果给某个 cookie 设置了 httpOnly 属性,则无法通过 JS 脚本 读取到该 cookie 的信息,但还Application 中手动修改 cookie,所以只是在一定程度上可以防止 XSS 攻击,不是绝对的安全 虽然设置了httponly之后拿不到cookie,但是 ...
分类:
Web程序 时间:
2021-01-25 11:04:42
阅读次数:
0
###1.如果没有vue脚手架需先要安装脚手架 cnpm i @vue/cli -g ###2.利用脚手架创建项目 vue create myproject(项目名) ###3.创建完项目后,需手动在项目根目录创建vue.config.js # vue.config.js module.export ...
分类:
其他好文 时间:
2021-01-25 10:57:04
阅读次数:
0
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:
编程语言 时间:
2021-01-25 10:47:59
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< ...
分类:
Web程序 时间:
2021-01-25 10:44:54
阅读次数:
0
原文: 初始化 <!-- vjs-big-play-centered可使大的播放按钮居住,vjs-fluid可使视频占满容器 --> <video id="myVideo" class="video-js vjs-big-play-centered vjs-fluid"> <p class="vjs ...
分类:
Web程序 时间:
2021-01-22 12:28:33
阅读次数:
0
1 - 对象 //构造函数 function obj(){ this.name = 'zhangsan', this.age = 23, this.eat = function(){ console.log('js'); } } var obj2 = new obj; console.log(obj ...
分类:
Web程序 时间:
2021-01-22 12:20:07
阅读次数:
0
class EventBus { constructor(){} handlerBus={} //注册 $on(eventName,handler){ if(!this.handlerBus.hasOwnProperty(eventName)){ this.handlerBus[eventName] ...
分类:
Web程序 时间:
2021-01-22 12:01:16
阅读次数:
0
1.运行Node.js安装程序脚本 下载并执行脚本: 1 2 3 $ sudo yum -y install curl $ curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - 2.在CentOS 8/7、RHEL 8/7系统上安装 ...
分类:
Web程序 时间:
2021-01-22 12:00:16
阅读次数:
0
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:
编程语言 时间:
2021-01-22 11:50:53
阅读次数:
0
// 非简写 let x = 'a' if (x 'a' || x 'b' || x 'c' || x 'd') { console.log(11111); } // 简写 let arr = ['a', 'b', 'c', 'd'] if (arr.includes(x)) { console.l ...
分类:
Web程序 时间:
2021-01-22 11:43:05
阅读次数:
0