会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dongxiaolei
博客内容仅作为个人学习笔记使用!!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
25
下一页
2020年11月5日
react学习
摘要: 1.state属性 state顾名思义就是状态,它只是用来控制这个组件本身自己的状态,我们可以用state来完成对行为的控制、数据的更新、界面的渲染. setState更新是异步的,事件处理过程 setState 不会同步更新 this.state, React 控制之外的情况, setState
阅读全文
posted @ 2020-11-05 13:34 dongxiaolei
阅读(220)
评论(0)
推荐(0)
2020年11月4日
阮一峰react-demo
摘要: 1) <script src="../build/react.development.js"></script> <script src="../build/react-dom.development.js"></script> <script src="../build/babel.min.js"
阅读全文
posted @ 2020-11-04 21:50 dongxiaolei
阅读(183)
评论(0)
推荐(0)
2020年11月2日
react学习笔记
摘要: 1)创建react组件 class ShoppingList extends React.Component {//组件名为ShoppingList render() {//render中 html标签的写法成为JSX语法 return ( <div className="shopping-list
阅读全文
posted @ 2020-11-02 15:15 dongxiaolei
阅读(118)
评论(0)
推荐(0)
2020年11月1日
jsonp跨越
摘要: 跨域解决方案1)jsonp,通过动态创建script标签,将请求url赋值给script的src属性,并在src属性后边拼接需要传的值,通过get方式传给后端,2)cors方式:后端通过修改请求头,允许跨域3)反向代理,后端在服务器上配置代理jsonp只能get请求// 1.创建一个全局函数 fun
阅读全文
posted @ 2020-11-01 20:35 dongxiaolei
阅读(96)
评论(0)
推荐(0)
2020年10月31日
微信小程序--开发须知
摘要: 基础 API说明企业微信支持情况 wx.canIUse 判断小程序的API,回调,参数,组件等是否在当前版本可用 支持 系统 系统信息 API说明企业微信支持情况 wx.getSystemInfoSync wx.getSystemInfo 的同步版本 支持 wx.getSystemInfo 获取系统
阅读全文
posted @ 2020-10-31 10:15 dongxiaolei
阅读(469)
评论(0)
推荐(0)
2020年10月30日
微信小程序知识点总结--组件
摘要: 一、部分常用组件 1、scroll-view可滚动视图区域: <scroll-view>标签必须设置scroll-x/scroll-y属性,否则不能实现滚动效果 css设置:<scroll-view>标签可以设置white-space:nowrap,子元素设置display:inline-block
阅读全文
posted @ 2020-10-30 14:43 dongxiaolei
阅读(228)
评论(0)
推荐(0)
2020年10月22日
js获取时间戳
摘要: 1) Date.parse(new Date()) 2)new Date().getTime() 3)new Date().valueOf() 4)Date.now()
阅读全文
posted @ 2020-10-22 20:20 dongxiaolei
阅读(96)
评论(0)
推荐(0)
2020年7月31日
CSS3制作圆形滚动进度条动画效果
摘要: 参考:https://www.cnblogs.com/jr1993/p/4677921.html
阅读全文
posted @ 2020-07-31 09:36 dongxiaolei
阅读(130)
评论(0)
推荐(0)
css3圆圈转动效果(转)
摘要: <!doctype html> <html> <head> <meta charset="utf-8"> <title>css动画bai</title> <style> *, *:before, *:after { box-sizing: border-box; margin: 0; padding
阅读全文
posted @ 2020-07-31 09:33 dongxiaolei
阅读(1099)
评论(0)
推荐(0)
2020年5月21日
js执行顺序(微任务 宏任务)
摘要: //Promise执行 执行resolve会进then 执行reject会进入catchsetTimeout(()=>{ console.log('set1'); }) new Promise((resolve,reject)=>{ console.log('p1'); resolve(); //同
阅读全文
posted @ 2020-05-21 14:20 dongxiaolei
阅读(295)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
25
下一页
公告