1. Fragment : 可以理解为空标签。 类似与 微信小程序的 <block> 2. 实例: import { Fragment } from 'react' class LI extends React.Component { constructor (props) { super(prop ...
分类:
其他好文 时间:
2020-06-17 15:34:31
阅读次数:
59
在小程序中自定义组件可以通过新建components来实现 参考微信小程序自定义组件文档 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html 自定义组件可以通过slot来 ...
分类:
微信 时间:
2020-06-17 15:33:02
阅读次数:
85
首先我用的bladex,前端采用elementui+avue来做的 需求:label内容过长,我要调整label宽度不至于让他换行 首先看了elementui的文档 发现没有效果,然后看了avue文档, 设置之后生效,但是始终不在一行,我在option属性中设置了:labelWidth:"120px ...
分类:
其他好文 时间:
2020-06-17 11:05:42
阅读次数:
294
@Aspect注解将表示它是一个切面@Component表示它是一个Spring的组件 切片Aspect,既然Spring那么支持AOP,就肯定都能拿。有人会问如何拿原始的HTTP请求和响应的信息,通过以下代码应该拿得到啊哈哈哈哈ServletRequestAttributes attributes ...
分类:
Web程序 时间:
2020-06-17 10:46:06
阅读次数:
54
Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(Conta ...
分类:
其他好文 时间:
2020-06-17 01:01:48
阅读次数:
68
let mysql=require(`mysql`) //引入相应依赖module.exports={ //导出对象 // config:{ host:`localhost`, //主机名 user:'root', //用户名 password:`123`, //密码 port:3306, //端口 ...
分类:
数据库 时间:
2020-06-16 23:52:25
阅读次数:
108
const mysql=require(`mysql`)module.exports.sqlpoll=function () { let pool={ config:{ host:`localhost`, user:`root`, password:`123`, port:3306, databas ...
分类:
数据库 时间:
2020-06-16 23:46:30
阅读次数:
154
const express=require(`express`)const morgan=require(`morgan`)const serveFavicon=require(`serve-favicon`)const bodyParser=require(`body-parser`)const ...
分类:
其他好文 时间:
2020-06-16 23:12:23
阅读次数:
58
一:账号安全控制 1.1:基本安全设置 [root@localhost ~]# cat /etc/passwd ##查看用户账号 [root@localhost ~]# grep "/sbin/nologin$" /etc/passwd [root@localhost ~]# useradd zha ...
分类:
系统相关 时间:
2020-06-16 23:10:57
阅读次数:
105
CommonJS服务端模块化教程(Node.js模块化教程) ###1. 安装Node.js ###2. 创建项目结构 |-modules |-module1.js |-module2.js |-module3.js |-main.js |-package.json ###3. 模块化编码: mod ...
分类:
Web程序 时间:
2020-06-16 18:15:01
阅读次数:
69