Processing math: 0%

11 2019 档案

摘要:github地址:https://github.com/somonus/react-native-echarts 官网:https://www.echartsjs.com/zh/tutorial.html#5%20分钟上手%20ECharts 安装之后因为rn版本问题,可能会抱错,关于WebView 阅读全文
posted @ 2019-11-29 13:59 liuw_flexi 阅读(358) 评论(0) 推荐(0) 编辑
摘要://直接给所有img标签绑定click事件 ("img").click(function(){ alert('你点击了图片'); }) //使用bind方法绑定click事件 ("img").bind("click",function(){ alert('你点击了图片'); }) 阅读全文
posted @ 2019-11-21 16:28 liuw_flexi 阅读(1566) 评论(0) 推荐(0) 编辑
摘要:参考资料 :https://www.jianshu.com/p/1e75bd387aa0 要点: 1. async function(){} 将普通函数转换成Promise 2. await 表达式/函数 强制等待后面的结果返回再继续 3. await 只能用在async function(){}中 阅读全文
posted @ 2019-11-21 10:29 liuw_flexi 阅读(1675) 评论(0) 推荐(0) 编辑
摘要:目标效果: 缩小浏览器之后 在<head>最前面引入flexible.js <head> 。。。 <script type="text/javascript" src="./lib/flexible.js"></script> 。。 </head> flexible.js 内容如下 (functio 阅读全文
posted @ 2019-11-19 16:44 liuw_flexi 阅读(242) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://www.cnblogs.com/qingchunshiguang/p/8011103.html 练习代码 <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></t 阅读全文
posted @ 2019-11-19 15:41 liuw_flexi 阅读(194) 评论(0) 推荐(0) 编辑
摘要:1. 从官网下载必要资源 https://www.swiper.com.cn/download/index.html#file1 2. 在项目中<head>中引入swiper.min.css <!-- Link Swiper's CSS --> <link rel="stylesheet" href 阅读全文
posted @ 2019-11-18 15:03 liuw_flexi 阅读(1469) 评论(0) 推荐(0) 编辑
摘要:首先设置图片宽高占满屏幕 <img id="bgImg" src="./img/bg.png" width='100%' height='100%'/> 然后设置 /*背景图*/ #bgImg{ object-fit: cover; left:0; bottom:0; position: absol 阅读全文
posted @ 2019-11-18 10:33 liuw_flexi 阅读(740) 评论(0) 推荐(0) 编辑
摘要:最好用background-color:rgba(37,77,113,1); 因为用opacity会让所有自标签都改变 阅读全文
posted @ 2019-11-18 10:24 liuw_flexi 阅读(214) 评论(0) 推荐(0) 编辑
摘要:子标签 的css 加这句overflow: hidden; 设置禁止子标签超出父标签产生了滚动条 阅读全文
posted @ 2019-11-18 10:22 liuw_flexi 阅读(479) 评论(0) 推荐(0) 编辑
摘要:用script标签,src是js文件路径 <script type="text/javascript" src="./js/udc.js"></script> 如果项目中用到了jquery,同样src是jquery文件路径 <script type="text/javascript" src="./ 阅读全文
posted @ 2019-11-18 10:08 liuw_flexi 阅读(545) 评论(0) 推荐(0) 编辑
摘要:对null执行typeof预算,结果返回字符串'object',也就是说,可以将null认为是一个特殊的对象值,含义是“非对象“。 例如:用typeof obj ‘object’判断obj是否是一个object 写法一: 写法二: 后者更为严谨 typeof在检测到null时也会显示为object, 阅读全文
posted @ 2019-11-14 11:39 liuw_flexi 阅读(271) 评论(0) 推荐(0) 编辑
摘要:关键词:Promise Promise.all Promise是什么?=> https://www.runoob.com/w3cnote/es6-promise.html Promise.all 和 Promise.race => https://www.jianshu.com/p/7e60fc1b 阅读全文
posted @ 2019-11-14 11:06 liuw_flexi 阅读(257) 评论(0) 推荐(0) 编辑
摘要:brew reinstall cocoapods brew install ruby brew link --overwrite cocoapods 最近将Mac OS升级到10.15.1 ,再回来初始化rn项目时,卡在Pod处,决定试试指定0.60.0版本初始化 过程参考了: https://gi 阅读全文
posted @ 2019-11-12 16:14 liuw_flexi 阅读(695) 评论(0) 推荐(0) 编辑
摘要:前端有一个todo app非常适合入门练手 react-native 实现todo app:https://github.com/nwgdegitHub/TODO_RN.git 阅读全文
posted @ 2019-11-12 14:16 liuw_flexi 阅读(200) 评论(0) 推荐(0) 编辑
摘要:常用插件: react-native-check-box 复选框react-native-sortable-listview 列表拖拽排序 react-native-doc-viewer 预览组件 react-native-img-cache 图片缓存 依赖于react-native-fetch-b 阅读全文
posted @ 2019-11-12 09:26 liuw_flexi 阅读(152) 评论(0) 推荐(0) 编辑
摘要:新版本中不时从react-native导入了,而是 react-native-async-storage 使用static setItem(key: string, value: string, [callback]: ?(error: ?Error) => void) 方法存储数据时,注意 val 阅读全文
posted @ 2019-11-08 12:00 liuw_flexi 阅读(191) 评论(0) 推荐(0) 编辑
摘要:因为未读消息是后台存的,当拉取API后,得到未读消息数: 阅读全文
posted @ 2019-11-06 16:52 liuw_flexi 阅读(2312) 评论(0) 推荐(0) 编辑
摘要:如果是在VC中操作,需要在viewDidLayoutSubviews方法里 - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; CGFloat radius = 36; // 圆角大小 UIRectCorner corner 阅读全文
posted @ 2019-11-06 16:38 liuw_flexi 阅读(1902) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示