yarn的安装与使用及与npm对应的命令 在Nodejs环境下,通过npm install -g yarn 命令进行全局安装yarn versionyarn inityarn installyarn add vueyarn add vue-routeryarn remove vue-routernpm Yarnnpm install yarn install(N/A) yarn install --flat(N/A) yarn install --har(N/A) yarn install --no-lockfile(N/
前端在写项目的时候要注意的问题后端一次性往数据库插入多条数据(其实归根到底就是insert一次性插入多个值) 前端在写项目的时候要注意的问题我们在给一个对象设置一个唯一标识的时候,最好不要用index,因为我们前端经常用到各种遍历就会用到各种index索引,这样很容易混淆。而且这个唯一表示不要和索引建立联系,因为你假如删除数组的元素,index会变化,从而导致你设置的唯一标识就会发生变化。后端一次性往数据库插入多条数据(其实归根到底就是insert一次性插入多个值)https://blog.csdn.net/qq_38322527/article/details/103390252?utm_medium
ajax向后台传参 https://www.programminghunter.com/article/16311085818/#:~:text=jquery%E4%B8%ADa,%E4%BC%A0%E5%8F%82%E5%88%B0%E5%90%8E%E5%8F%B0%E9%A1%B5%E9%9D%A2%E3%80%82
原型,原型链,构造函数js 通过new构造函数,它可以帮我们返回一个对象。prototype指的是我们的原型对象。原型对象指的是所有实例的公共组件。https://www.bilibili.com/video/BV1a5411a7n3
React脚手架项目的搭建 https://www.cnblogs.com/zjh-study/p/10937847.html函数式组件渲染就可以理解为用函数定义组件,渲染的时候也是通过函数里面写render方法渲染组件。函数组件直接返回就可以了,类组件要渲染返回的值。组件看成是对象,然后给对象的属性设置东西如果有事件的话就用类组件。如果组件里面套用了组件,最外层渲染对象传的属性还要在子组件上赋值一下。这样才会把值传给子组件。要不然你只是传给了你赋值的那个组件。state其实就是有
react里面什么时候用双括号 <Input placeholder="xxx" style={{width:'233px', marginRight:'10px'}} prefix={<UserOutlined />} />
new的是函数不是对象,js中要注意(箭头函数的指向) <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script> //箭头函数中的this是在定义
node.js的安装 https://www.cnblogs.com/lxg0/p/9472851.htmlhttps://blog.csdn.net/jincheng_921/article/details/100109747npm config set prefix “D:\bianchengode-v16.13.0-win-x64ode-global”npm config set cache “D:\bianchengode-v16.13.0-win-x64ode-cache”
React中事件的调用 <!DOCTYPE html><html><head> <meta charset="UTF-8" /> <title>Hello React!</title> <script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script> <script src="https://cdn
React里面的constructor()、super()、super(props)具体使用 https://blog.csdn.net/chiuwingyan/article/details/82931165
js中的异步(promise的使用,ajax) <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <script> // function y
React中组件的使用(创建多个组件合成一个组件,易错的点) function Name(props) { return <h1>网站名称:{props.name}</h1>;}function Url(props) { return <h1>网站地址:{props.url}</h1>;}function Nickname(props) { return <h1>网站小名:{props.nickname}</h1>;}function App() {...