摘要: 这是原网址:https://www.moyublog.com/codes/237.html 在tree.vue中 <template> <ul class="l_tree" v-if="model.length"> <li class="l_tree_branch" v-for="(item,ind 阅读全文
posted @ 2019-12-12 09:27 秋风渡明月 阅读(1245) 评论(0) 推荐(0) 编辑
摘要: 如;Taylor Gre Swift /^([A-Za-z]+\s?)*[A-Za-z]$/ 只能输入中文 /^[\u4e00-\u9fa5]+$/ 手机号 /^1[34578]\d{9}$/ 大写字母 ^[A-Z]+$ 去除开头的0 .replace(/\b(0+)/gi,"") 金额正则(可以输 阅读全文
posted @ 2019-12-06 09:32 秋风渡明月 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 目录结构 打开数据库,启动服务, 第一步在jquery目录下初始化package.json文件。运行 npm init -y 第二步新建一个app.js,与数据库建立联系 module.exports = (sql,params,callback) => { var mysql = require( 阅读全文
posted @ 2019-12-05 14:33 秋风渡明月 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 地址 https://www.cnblogs.com/xiadewang/p/7820377.html 阅读全文
posted @ 2019-12-03 11:57 秋风渡明月 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 可以标注重要日子 自己写的,可能不是特别很好,大家多提意见!!! 地址:https://github.com/jsLWQ/calendar 阅读全文
posted @ 2019-11-25 16:34 秋风渡明月 阅读(2039) 评论(2) 推荐(0) 编辑
摘要: <template> <div> <input v-model="count" /> </div> </template> <script> import { ref, watch } from "@vue/composition-api"; export default { setup() { / 阅读全文
posted @ 2019-11-19 16:12 秋风渡明月 阅读(4592) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-19 16:09 秋风渡明月 阅读(4012) 评论(0) 推荐(0) 编辑
摘要: 新建.reg的文件,复制下面代码,然后运行 D:\\软件\\VsCode\\Microsoft VS Code\\Code.exe路径改为自己的,必须是两个 \\ 才能生效 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell 阅读全文
posted @ 2019-11-19 10:33 秋风渡明月 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 创建state.js import React, { createContext,useContext,useReducer } from 'react'; export const countText = createContext({}) export const updateCount = ' 阅读全文
posted @ 2019-11-15 10:40 秋风渡明月 阅读(839) 评论(0) 推荐(0) 编辑
摘要: import React, { useReducer } from 'react'; function Reducers () { const [count,dispatch] = useReducer((state,avtion) => { switch(avtion.type) { case ' 阅读全文
posted @ 2019-11-14 16:24 秋风渡明月 阅读(2726) 评论(0) 推荐(0) 编辑