摘要:
import React from 'react' import ReactDOM from "react-dom" const {Provider,Consumer} = React.createContext() class ContextDemo extends React.Component 阅读全文
摘要:
import React from 'react'; import ReactDOM from 'react-dom'; let hooksIndex = 0 const hooksState = [] const useState = (initialValue)=>{ hooksState[ho 阅读全文
摘要:
function curring(fn,args=[]){ let l = fn.length return function(...arg){ let newArgs = [...arg,...args] if(newArgs.length == l){ return fn(...newArgs) 阅读全文
摘要:
1.取当前月份最后一天 function getCurrentMonthLast(){ var date=new Date(); var currentMonth=date.getMonth(); var nextMonth=++currentMonth; var nextMonthFirstDay 阅读全文
摘要:
<script> class strNumSwitch { // 千分转数字 static toNum = (param) => { let num = param if (`${param}`.includes(',')) { num = param.replace(/(,*)/g, '') } 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
摘要:
我想把自己传给后台的数据给定义一个接口, interface Inparam{ applyId:null; applyType:string; remark:string; actualApplyPersonId:number; isAgent:string; saveComplete:boolea 阅读全文
摘要:
'#'+(~~(Math.random()*(1<<24))).toString(16) 这段代码是生成颜色的 阅读全文
摘要:
分支上线打包 git tag -d tag名字 git push origin :refs/tags/tag名字 git tag 查看所有tag git tag -a tag名字 -m "注释" git push --tags 把本地新建的tag推送到git上 阅读全文
摘要:
function cre(param){ return Array.from(arguments) } function component(param){ param = [1,2,3,4].concat(param) console.log(param) return param } funct 阅读全文