码迷,mamicode.com
首页 >  
搜索关键字:js addclass    ( 97922个结果
二十七:XSS跨站之代码及httponly绕过
httponly:如果给某个 cookie 设置了 httpOnly 属性,则无法通过 JS 脚本 读取到该 cookie 的信息,但还Application 中手动修改 cookie,所以只是在一定程度上可以防止 XSS 攻击,不是绝对的安全 虽然设置了httponly之后拿不到cookie,但是 ...
分类:Web程序   时间:2021-01-25 11:04:42    阅读次数:0
vue代理服务器proxy配置
###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
JS数组去重
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:编程语言   时间:2021-01-25 10:47:59    阅读次数:0
简单 实现 Vue.js 的v-if v-show 指令
<!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
videojs插件的参数解释
原文: 初始化 <!-- 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
js基础部分
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
js发布订阅模式实现eventBus
class EventBus { constructor(){} handlerBus={} //注册 $on(eventName,handler){ if(!this.handlerBus.hasOwnProperty(eventName)){ this.handlerBus[eventName] ...
分类:Web程序   时间:2021-01-22 12:01:16    阅读次数:0
在CentOS 8/7、RHEL 8/7系统上安装Node.js 14版本的方法
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
JS数组去重
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:编程语言   时间:2021-01-22 11:50:53    阅读次数:0
js多条件判断的简写
// 非简写 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
97922条   上一页 1 ... 79 80 81 82 83 ... 9793 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!