码迷,mamicode.com
首页 >  
搜索关键字:js async    ( 100267个结果
Node.js中的Stream
Stream主要用于序列化地数据处理(read or write input into output sequentially),比如文件读写,网络数据传输, 或任何端到端的数据交换。Stream在处理数据的时候,与传统方式有所不同,传统方式是把数据作为一个整体进行处理,而stream则是把数据分割 ...
分类:Web程序   时间:2021-01-25 11:16:01    阅读次数:0
chrome扩展-sendResponse不等待异步功能(chrome extension - sendResponse not waiting for async function)
描述: 1. content-script 1 中的 就是给 backgroun 发送了一个 message。(content-script 1 中的内容我就不贴出来了) 2. background 拿到 message 之后 会打开一个 新的标签页, 这个标签页会注入 content-script ...
分类:其他好文   时间:2021-01-25 11:12:51    阅读次数:0
二十七: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
100267条   上一页 1 ... 84 85 86 87 88 ... 10027 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!