摘要: // 树节点中查询遍历组织 getNode(data, key, val) { let treeNode = ""; data.some(item => { let flag = false; console.log("item[" + key + "]", item[key], "val", va 阅读全文
posted @ 2022-12-06 10:51 Charlie098765 阅读(61) 评论(0) 推荐(0) 编辑
摘要: <img src="xxx.png" alt="加载失败" onerror="this.classList.add('error');"> img.error { display: inline-block; transform: scale(1); content: ''; color: tran 阅读全文
posted @ 2022-06-01 10:50 Charlie098765 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 关键:所有元素设置高度和字体大小一致,并且所有元素align-self: flex-end; 具体代码如下: <template> <view class="u-f-ac main"> <view>价格:</view> <view class="u-f price-container"> <view 阅读全文
posted @ 2020-08-28 15:15 Charlie098765 阅读(717) 评论(0) 推荐(0) 编辑
摘要: npm initnpm install --productionnpm i 第三方组件名称 -S --production //重要 阅读全文
posted @ 2019-08-15 10:32 Charlie098765 阅读(167) 评论(0) 推荐(0) 编辑
摘要: //禁止关闭遮罩 window.addEventListener('tap', function(e) { e.target.className == 'mui-backdrop mui-active' && e.stopPropagation(); },true); 阅读全文
posted @ 2019-04-09 16:15 Charlie098765 阅读(877) 评论(0) 推荐(0) 编辑
摘要: //默认上下15px的边距高度,可根据需要修改function layuiDialogFitScreen(){ var layui_title_height=$(window.parent.document).find(".layui-layer-title").height(); var border_margin=30; var minH=150; var _margin=0; v... 阅读全文
posted @ 2018-09-06 11:13 Charlie098765 阅读(10183) 评论(0) 推荐(0) 编辑
摘要: 1.代码布局 2.custom_select.css 3. custom_select.js 4.相关箭头图片 阅读全文
posted @ 2018-09-06 11:10 Charlie098765 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1. manifest.json的plus节点里面配置 2.代码里面设置plusReady或者onload方法里面 阅读全文
posted @ 2018-07-13 16:40 Charlie098765 阅读(2828) 评论(0) 推荐(0) 编辑
摘要: 已知两个中文地址,自动规划路径,获取路径上每个3公里的点的经纬度 阅读全文
posted @ 2018-07-05 18:06 Charlie098765 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1.控件: 2.js代码 /**修改原因:兼容苹果的原生输入法; * 1.之前的效果:onkeyup 如果是拼音zhang输入之后点击输入法键盘变为"张"不会触发onkeyup事件,onkeyinput会触发三次张、空格、张 * 2.修改之后:如果是中文的触发"compositionend"监听,如 阅读全文
posted @ 2017-09-28 11:52 Charlie098765 阅读(516) 评论(0) 推荐(0) 编辑