上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 微信X5内核调试第一步debugmm.qq.com/?forcex5=true第二步http://debugtbs.qq.com/第三步http://debugx5.qq.com/ 阅读全文
posted @ 2022-01-17 13:09 青云码上 阅读(1541) 评论(0) 推荐(0) 编辑
摘要: 安装 Homebrew 直接复制以下命令安装即可: /bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)" 安装了Homebrew就可以使用 brew 命令了。 安装 tre 阅读全文
posted @ 2022-01-06 14:40 青云码上 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 原生js <input type="text" oninput="iptEvent(value, event)" placeholder="只能输入数字" /> function iptEvent(value, e) { // 纯数字,不含小数点 e.target.value = value.rep 阅读全文
posted @ 2021-12-31 01:24 青云码上 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 我们使用 vue 编写弹框组件的时候,想要关闭弹窗时往往会写个关闭的方法,子组件$emit,父组件里还要加 @xxx="xxxxx", 非常的不优雅,现在使用 .sync 就非常方便优雅地控制弹窗显示和隐藏了。 父组件: <myModal :show.sync="modalShow" /> //编译 阅读全文
posted @ 2021-12-21 16:29 青云码上 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: vue build --target wc --name componentName src/components/xxxxxx.vue componentName:web-component 组件名字,自己取src/components/xxxxxx.vue:vue组件路径 阅读全文
posted @ 2021-12-17 13:57 青云码上 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 普通去重 [...new Set(arr)] 根据对象属性值去重 function unique(arr,u_key) { let map = new Map() arr.forEach((item,index)=>{ if (!map.has(item[u_key])){ map.set(item 阅读全文
posted @ 2021-12-13 15:44 青云码上 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Element 接口的scrollIntoView()方法会滚动元素的父容器,使被调用scrollIntoView()的元素对用户可见。 语法 element.scrollIntoView(); // 等同于element.scrollIntoView(true) element.scrollInt 阅读全文
posted @ 2021-09-28 11:21 青云码上 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 匹配中文:/[\u4e00-\u9fa5]/ 匹配表情:/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/ 匹配手机号:/^[1][3,4,5,6,7,8,9][0-9]{9}$/ 匹配座机:/ 阅读全文
posted @ 2021-08-30 20:46 青云码上 阅读(108) 评论(0) 推荐(0) 编辑
摘要: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <titl 阅读全文
posted @ 2021-08-18 11:10 青云码上 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: .active { animation-play-state: running; } .paused { animation-play-state: paused; } IOS低版本机型不支持animation-play-state 兼容写法: @supports not(animation-pla 阅读全文
posted @ 2021-05-19 15:45 青云码上 阅读(190) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页