上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: js代码: var audio = document.createElement('audio'); audio.src = ''; audio.loop = true; audio.play(); 然后你会发现控制台报错: Uncaught (in promise) DOMException: p 阅读全文
posted @ 2021-05-17 10:03 芝麻小仙女 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 在页面头部加上 <meta content="no-referrer" name="referrer"> content后面的“属性值”,常见有以下几种: no-referrer:任何情况下都不发送Referrer信息;no-referrer-when-downgrade:仅当协议降级(如从HTTP 阅读全文
posted @ 2021-05-15 16:32 芝麻小仙女 阅读(2472) 评论(0) 推荐(0) 编辑
摘要: const res = new Map(); const newList = defaultRes.filter((arr:any) => !res.has(arr.dataIndex) && res.set(arr.dataIndex, 1)) △ 例1.使用Map去重了对象数组中dataInde 阅读全文
posted @ 2021-05-11 17:57 芝麻小仙女 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 首先接到的任务是这样的: 那么打开参考对象看一眼: 总结一下组件的内容和功能点: 1.一个输入框,两个按钮(确定,取消) 2.点击文本,弹出气泡,进行编辑,提交/取消,关闭气泡,更新数据(数据不变则不更新) 而原本的组件,则是直接点击编辑按钮,变为编辑模式: 因此,我选择了antd提供的Popove 阅读全文
posted @ 2021-04-27 13:20 芝麻小仙女 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 1.自我介绍 自我介绍必须包括三点: (1)个人信息:姓名,岗位,工作年限,教育背景(如学历亮点) 》【我是谁】 (2)技术能力:简要介绍自己的技术栈(切忌介绍不怎么会的技术栈,避免后续被问到) 》【我会什么】 (3)技能擅长:强调自己擅长的技术(切忌盲目自信、夸大其词),比如我擅长使用react框 阅读全文
posted @ 2021-01-21 18:04 芝麻小仙女 阅读(94) 评论(0) 推荐(0) 编辑
摘要: import Taro from '@tarojs/taro'; import { View, Image, Text } from '@tarojs/components'; import IconFont from '@/components/iconfont'; import { toast, 阅读全文
posted @ 2020-12-15 11:02 芝麻小仙女 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 组件: {form.getFieldValue('status') '03' && getFieldDecorator('timingPublishTime', { initialValue: isEdit && infomentDetail.timingPublishTime ? moment(i 阅读全文
posted @ 2020-12-11 11:17 芝麻小仙女 阅读(2052) 评论(0) 推荐(0) 编辑
摘要: UI设计图: 组件代码: import Taro from '@tarojs/taro'; import { View, Button } from '@tarojs/components'; import classNames from 'classnames'; import IconFont 阅读全文
posted @ 2020-11-19 14:20 芝麻小仙女 阅读(511) 评论(0) 推荐(0) 编辑
摘要: // 来自antd的menu组件定义 export interface SelectParam { key: string; keyPath: Array<string>; item: any; domEvent: Event; selectedKeys: Array<string>; } expo 阅读全文
posted @ 2020-11-09 17:40 芝麻小仙女 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 可以在rowSelection对象内声明selectedRowKeys,通过改变它来控制表格的选中状态: const [selectKeys, setSelectedKeys] = useState<any[]>([]); // 通过 rowSelection 对象表明需要行选择 const row 阅读全文
posted @ 2020-10-26 13:39 芝麻小仙女 阅读(5119) 评论(1) 推荐(1) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页