码迷,mamicode.com
首页 >  
搜索关键字:require    ( 6509个结果
关于module.exports和export default两种不同方式暴露的文件的引用
module.exports 或 exports,使用require方式引入 export default 或 export,使用import方式引入 ...
分类:其他好文   时间:2020-05-08 09:19:21    阅读次数:130
nodejs 微信证书 request 使用
let request = require('request');//当然我们引用要写在最上面,但为了看的清楚点就一步一步走吧 request({ //请求地址 url:'https://api.mch.weixin.qq.com/secapi/pay/refund', //还记得准备的证书吗这里就 ...
分类:微信   时间:2020-05-07 15:53:31    阅读次数:134
Node.js中模块加载机制
1.模块查找规则-当模块拥有路径但没有后缀时:(require(‘./find’)) require方法根据模块路径查找模块,如果是完整路径,直接引入模块; 如果模块后缀省略,先找同名JS文件,再找同名JS文件夹; 如果找到了同名文件夹,找文件夹中的index.js; 如果文件夹中你那个没有inde ...
分类:Web程序   时间:2020-05-07 15:43:18    阅读次数:75
springcloud项目启动gateway报错org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found
spring-cloud-starter-gateway依赖与mvc是不兼容的,如果要引用spring-boot-starter-web需要把mvc排除 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri ...
分类:编程语言   时间:2020-05-07 13:56:50    阅读次数:142
node require的循环引用是怎么一回事
require 运行过程 require 引用是同步的,没有异步这么一说,它会先运行一遍。 setouttime(function(){ export=a; }) 如果我们require的时候,那么这个时候是请求到{}的,也就是没有暴露任何的元素。 require 循环引用 require 循环引用 ...
分类:其他好文   时间:2020-05-07 13:31:03    阅读次数:80
Reentrant mutex可重入互斥锁
Reentrant mutex In computer science, the reentrant mutex (recursive mutex, recursive lock) is a particular type of mutual exclusion (mutex) device tha ...
分类:其他好文   时间:2020-05-07 13:11:49    阅读次数:71
从koa-static中间件学习搭建静态文件服务器
从koa-static中间件学习搭建静态文件服务器 原文地址 koa-send Static file serving middleware koa-static中有说明它只是koa-send的一个包装 const send = require('koa-send'); app.use(async ...
分类:其他好文   时间:2020-05-07 00:55:51    阅读次数:96
React系列——websocket群聊系统在react的实现
前奏 这篇文章仅对不熟悉在react中使用socket.io的人、以及websocket入门者有帮助。 下面这个动态图展示的聊天系统是用react+express+websocket搭建的,很模糊吧,要得就是这样的效果,我自己开了2个窗口,创建2个用户自问自答。没有什么高深的技术,对于很多想接触we ...
分类:Web程序   时间:2020-05-07 00:43:18    阅读次数:136
vue-loader的配置
build/vue-loader.coonfig.js module.exports = (isDev) => { return { preserveWhitepace: true, //清除文本换行等情况空格 extractCSS: isDev ? false : true, // 把vue的cs ...
分类:其他好文   时间:2020-05-06 20:01:47    阅读次数:124
Map
Map Prior to ES6, when we require the mapping of keys and values, we often use an object. It is because the object allows us to map a key to the value ...
分类:其他好文   时间:2020-05-06 18:04:51    阅读次数:57
6509条   上一页 1 ... 51 52 53 54 55 ... 651 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!