随笔分类 - 前端杂七杂八
摘要:const USER_NAME = "wangzz"; class A {} let age = 25; var job = "coder"; function printInfo() { console.log("USER_NAME: ", this.USER_NAME); console.log
阅读全文
摘要:示例图 相关代码 <template> <div> <a-modal v-model:visible="props.uploadVisible" width="1300px" :footer="null" maskClosable @cancel="onCancelClick" > <div cla
阅读全文
摘要:#### 示例图  #### 代码案例 ``` background: url(@/assets/nlzsimg/n
阅读全文
摘要:``` = state.initIntrosSize" :disabled="index 1" style="font-size: 20px; margin-left: 10px; color: #cccccc" @click="removeDomain(intro)" /> 图片上传 视频上传 上
阅读全文
摘要:#### Slice array elements Slice: To cut out a multiple items in range. It takes two parameters: starting and ending position It doesn't inclue the end
阅读全文
摘要:.menu-box overflow-y: scroll height 100% .menu-box::-webkit-scrollbar { display: none; } 参考连接: https://www.cnblogs.com/heleiya/p/13125946.html
阅读全文
摘要:参考:https://blog.csdn.net/Amnesiac666/article/details/122060057 ~(波浪号):A ~ B表示选择A标签后的所有B标签,但是A和B标签必须有相同的父元素。 ~(加号)加号又被称作兄弟选择器。A+B表示选择紧邻在A后面的B元素,且A和B必须拥
阅读全文
摘要:=> 要么 .abc, .xyz { margin-left:20px; width: 100px; height: 100px; } => 要么 a.abc, a.xyz { margin-left:20px; width: 100px; height: 100px; } => 要么 a { ma
阅读全文
摘要:切割数组得到头部 > let a = [1, 2, 3, 4, 5, 6] > a.slice(2) [3, 4, 5, 6] > a.splice(2) [3, 4, 5, 6] 根据索引切取指定范围内的数组 > let arr = [1, 2, 3, 4, 5, 6] > arr.slice(2
阅读全文
摘要:业务效果图 核心代码 <template> <a-date-picker v-model='record.payTime' show-time autoclear placeholder='请选择付款时间' valueFormat='YYYY-MM-DD HH:mm:ss' /> </templat
阅读全文
摘要:参考: http://t.csdn.cn/g4aDZ 业务效果图 核心代码 <a-form-model-item label='付款详情' prop='rate'> <a-table :columns='current08Form.payColumns' :data-source='current0
阅读全文
摘要:<br><br>.title { position: relative; padding-left: 13px; margin: 24px 0px; } .title:before { content: ''; background-color: #3796EC; width: 4px; heigh
阅读全文
摘要:https://www.cnblogs.com/zhengzhijian/p/16859812.html
阅读全文
摘要:参考: https://blog.csdn.net/qq_37130872/article/details/128133646 useImages.js // 获取assets静态图片 export const getAssetsImge = (name) => { return new URL("
阅读全文
摘要:业务效果 核心代码 <template> <a-layout class="layout"> <a-layout-header class="header" style="height: 50px"> <div class="wrapper content"> <span class="info">
阅读全文
摘要:给时间添加 am或pm // 'h' is an hour number const suffixAmPm = (h) => `{h < 12 ? 'am' : 'pm'}`; suffixAmPm(0); // '12am' suffixAmPm
阅读全文
摘要:参考:https://1loc.dev/ 将一个值转为数组的方法 const castArray = (value) => (Array.isArray(value) ? value : [value]); caseArray(1); // [1] 或直接使用Array.of(val)这个构造方法代
阅读全文