摘要: 结果 描述 实体名称 实体编号 " quotation mark &quot; &#34; ' apostrophe &apos; &#39; & ampersand &amp; &#38; < less-than &lt; &#60; > greater-than &gt; &#62; non-b 阅读全文
posted @ 2021-06-30 14:54 Peter_Yang0942 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 原生代码实现: <template id="userCardTemplate"> <style>...</style> <img class="image"> <div class="container"> <p class="name"></p> <p class="email"></p> <bu 阅读全文
posted @ 2021-06-30 14:51 Peter_Yang0942 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1、打印页面元素标签:console.log('某元素'); 2、打印页面元素属性:console.dir('某元素'); 阅读全文
posted @ 2021-06-30 14:39 Peter_Yang0942 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://uniapp.dcloud.io/platform?id=%e8%b7%a8%e7%ab%af%e5%85%bc%e5%ae%b9 阅读全文
posted @ 2021-05-25 17:08 Peter_Yang0942 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 加密:window.btoa() 解密:window.atob() 字符串:'hello world' 阅读全文
posted @ 2021-05-17 16:28 Peter_Yang0942 阅读(370) 评论(0) 推荐(0) 编辑
摘要: js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { deltaX: 0, // 左右滑动回弹距离 _startx: 0, // 开始的位置x _starty: 0, // 开始的位置y _endx: 0, 阅读全文
posted @ 2021-04-22 16:01 Peter_Yang0942 阅读(127) 评论(0) 推荐(0) 编辑
摘要: import React from "react"; import "./style.less"; class SlideItem extends React.Component { constructor(props) { super(props); this.state = {}; } comp 阅读全文
posted @ 2021-04-22 15:59 Peter_Yang0942 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 1. 卸载 npm uninstall yarn -g 2. 安装 npm install yarn (最好不要用别的安装命令,会没效果) 3. 添加环境变量:系统变量path添加 C:\Users\bokeyuan\node_modules\yarn\bin 4. 重新打开cmd执行:yarn - 阅读全文
posted @ 2021-04-20 13:52 Peter_Yang0942 阅读(23748) 评论(0) 推荐(1) 编辑
摘要: that.value = that.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数 https://blog.csdn.net/qq_24935119/article/details/96437971 https://ww 阅读全文
posted @ 2020-08-06 11:27 Peter_Yang0942 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 新版本中官方方案:cover-view,cover-image 参考:https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html cover-view内只支持嵌套 cover-view、cover-image, 阅读全文
posted @ 2020-07-22 09:38 Peter_Yang0942 阅读(782) 评论(0) 推荐(0) 编辑