1、引入fs模块 const fs = require('fs'); 2、常用方法 1、fs.stat 检测是文件还是目录 检测文件or目录是否存在 检测是文件还是目录 fs.stat('./test.html',(err,data)=>{ if(err){ console.log(err); re ...
分类:
Web程序 时间:
2020-11-23 12:21:53
阅读次数:
12
问题一: [root@cdeba90ec46e ~]# ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module bash: ./configure: No such fil ...
分类:
其他好文 时间:
2020-11-23 12:11:38
阅读次数:
5
ERROR Failed to compile with 4 errors These relative modules were not found: * ../../../public/ueditor/lang/zh-cn/zh-cn.js in ./node_modules/babel-loa ...
分类:
Web程序 时间:
2020-11-23 12:09:09
阅读次数:
11
问题原因是 Windows不支持pcntl库 ,参考 https://stackoverflow.com/questions/30045085/how-to-install-pcntl-extension-in-windows 解决方案: https://stackoverflow.com/ques ...
一、activiti的监听器分为:全局监听、连线监听、节点监听。 1、节点监听 <userTask id="myTask" name="My Task" > <extensionElements> <activiti:taskListener event="create" class="org.ac ...
分类:
其他好文 时间:
2020-11-21 12:48:08
阅读次数:
33
不常用,查了又忘,遇到时又抓狂,记录下,疑问请留言。内容来自经验总结,盲人摸象,不系统,不正确。 Lua 5.3,Win 10,ZeroBrane Studio。 字符按码表被编码。 字符character(符号)与编码code(数值)的映射(编码)关系。 字符-编码->编码、编码-解码->字符。 ...
分类:
其他好文 时间:
2020-11-21 12:22:55
阅读次数:
7
1.从控制台输入: 另外还有很多中方法供选择 2.从文件中输入 2.1绝对路径 2.2相对路径:一定要注意i相对路径是相对于整个项目project的路径而不是module 注意最后一定要把Source关闭 2.文件的输出 3.网络的交互 1 package com.me.scala 2 3 impo ...
分类:
其他好文 时间:
2020-11-21 12:14:30
阅读次数:
7
在看阮一峰的react入门的时候,写到一段代码,但是写完就报错了,经过多方查找,终于解决掉了 错误描述: 解决方法: 将React.createClass换成React.Component, 但是不知道为什么这样就不报错了 (^._.^)? 文章地址:https://toddmotto.com/re ...
分类:
Web程序 时间:
2020-11-21 12:12:27
阅读次数:
15
Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found 1. 检查ansible服务器的Python: # ls /usr/bin/python 没有则安装。 2. 检查节点服务器的Python: 没有python,路径下也 ...
分类:
编程语言 时间:
2020-11-21 12:10:11
阅读次数:
6
1.import module_name 2.from module_name import class_name 3.from module_name import * 当我们知道需要导入模块那个类时,会用到2,比如我们要从from matplotlib import pyplot,但我们不知道需 ...
分类:
其他好文 时间:
2020-11-21 12:10:00
阅读次数:
5