03 2020 档案

摘要:CronTrigger配置格式: 格式: [秒] [分] [小时] [日] [月] [周] [年] 序号 说明 是否必填 允许填写的值 允许的通配符 1 秒 是 0 59 , / 2 分 是 0 59 , / 3 小时 是 0 23 , / 4 日 是 1 31 , ? / L W 5 月 是 1 阅读全文
posted @ 2020-03-31 16:10 橙云生 阅读(888) 评论(0) 推荐(0) 编辑
摘要:event.js (单例) app.js 阅读全文
posted @ 2020-03-31 15:59 橙云生 阅读(256) 评论(0) 推荐(0) 编辑
摘要:```import React, {Component} from 'react';import { PropTypes } from 'prop-types';class ListItem extends Component { static contextTypes = { color: PropTypes.string } render(){ const { valu... 阅读全文
posted @ 2020-03-31 15:14 橙云生 阅读(192) 评论(0) 推荐(0) 编辑
摘要:/ 判定数组中的内容是相同的 不含顺序 @param { } arr / export function isEqualArray(arr1,arr2 ){ if(!(arr1 instanceof Array) || !(arr2 instanceof Array) || arr1.length 阅读全文
posted @ 2020-03-30 15:30 橙云生 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-24 20:49 橙云生 编辑
该文被密码保护。
posted @ 2020-03-10 14:32 橙云生 阅读(2) 评论(0) 推荐(0) 编辑
摘要:有个缺陷 就是放在react代码中会无法正确运行,这是因为这里的监听完成其实是通过 窗口之间的切换完成的,在react中,切换窗口会卸载组件。导致监听事件的回调函数中无法运行。 阅读全文
posted @ 2020-03-04 19:44 橙云生 阅读(2499) 评论(0) 推荐(0) 编辑
摘要:egg开发环境配置: egg是基于koa的典型的mvc框架,app是开发目录,目录和命名严格按照约定进行。 配置ejs模板引擎 "下载代码" 阅读全文
posted @ 2020-03-04 11:45 橙云生 阅读(211) 评论(0) 推荐(0) 编辑
摘要:``` export async function sleep({res,time}){ function run(){ return new Promise((resolve,reject)=>{ setTimeout(()=>{ resolve(res) },time) }) } return await run() }; /* sleep : 模拟异步返回请求结果,当接口 不能直接调用的时候 阅读全文
posted @ 2020-03-02 10:00 橙云生 阅读(697) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示