logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

webStrom uniapp 不识别@别名

2 改为手动(Manually),目录选择当前项目目录的下的。3 改为手动(Manually),目录选择刚才创建的文件。1 找到webstrom设置。2 找到webstrom设置。

#uni-app#javascript#vue.js
在react中使用 CodeMirror 自己制作在线代码编辑器

官网CodeMirror下载npm install codemirror使用import React,{useEffect,useRef} from 'react'importCodeMirror from'codemirror'import 'codemirror/lib/codemirror.css';function Test () {const textareaRef=useRef()us

Failed to launch ‘xxxxxx‘ because the scheme does not have a registered handler

错误原因没写协议头错误写法window.open=('albumEditorAdmin:8080/photoShop/PhotoShop')正确写法window.open=('http://albumEditorAdmin:8080/photoShop/PhotoShop"')参考Failed to launch ‘xxxxxx‘ because the scheme does not have

ahooks,一个 react hooks好用的库

前言这几天重新过了一遍hook,在项目中自定义hook之后发现非常的爽,逻辑层可复用,与视图分离,找了找文档后发现了这个好用的库使用前提对react hooks 较为熟练地址ahooks方便在哪里?下面这里用它的一个最简单的demo来说明使用useToggle,const ToggleTest=() => {//shook写法const [ state, { toggle,setLeft,s

如何在非react组件之外的普通js文件内使用redux

组件中是如何使用reduxconst store = createStore(todoApp, applyMiddleware(thunk))ReactDOM.render((<Provider store={store}><App/></Provider>),document.getElementById('root'))上面是使用redux入口必写的模板代码

git 已存在的文件夹/已存在的git版本库

已存在的文件夹cd existing_foldergit initgit remote add origin ssh://git@git.xinwangdao.com:10022/tttleon/test.gitgit add .git commit -m "Initial commit"git push -u origin master已存在的 Git 版本库cd existing_repogi

react 省市区地址级联 china-division、antd、Cascader

官方推荐的codesandbox在线例子代码地址效果使用yarn add china-division复制粘贴代码其他同理可以使用案例中遍历获得的数据进行其他操作。

react 实现倒计时

思路利用setTimeOut,每秒将数值减一利用useRef设置定时器,方便清楚const [time,setTime]=useState(null)//倒计时时间const timeRef=useRef()//设置延时器//倒计时useEffect(()=>{//如果设置倒计时且倒计时不为0if(time&&time!==0)timeRef.current=setTimeo

react css 修改复写antd组件样式,而且不污染全局

方法比如说我想删掉antd Input.Search 的左边框从页面上找到要修改的位置,页面上修改后确定是这个样式名利用:globalcss中写法:global(.ant-input-search-icon:before){border-left: initial;}scss或者less中写法 scss自带嵌套比较方便:global{.ant-input-search-icon:before{bo

#css#html
react css Modules 添加多个className

单个写法//样式.sAll{font-size: 30px;}//元素<div className={styles.sAll}>aaaaaa</div>多个写法使用模板字符串处理//样式.sAll{font-size: 30px;}.s1{color: blue;}.s2{color: red;}//元素<div className={`${styles.sAll}

    共 28 条
  • 1
  • 2
  • 3
  • 请选择