2022年10月14日
摘要: <input v-model="searchValue" placeholder="请输入要搜索的内容" class="searchInput" placeholder-style="font-size:26rpx" style="height: 70rpx;"/> watch: { // 搜索框出 阅读全文
posted @ 2022-10-14 16:58 阿术阿术 阅读(176) 评论(0) 推荐(0) 编辑
摘要: white-space: nowrap; overflow: scroll; 阅读全文
posted @ 2022-10-14 14:01 阿术阿术 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 如何提高页面性能? 精灵图、字体图标、图片懒加载或使用base64格式图片 css,js文件压缩,代码复用,组件化 使用CDN网络托管 数据懒加载:分页,按需加载(下拉加载) 频繁触发的事件添加防抖和节流 路由懒加载: 阅读全文
posted @ 2022-10-14 14:00 阿术阿术 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 类名组合规则: 常见class关键词: 布局类:header, footer, container, main, content, aside, page, section 包裹类:wrap, inner 区块类:region, block, box 结构类:hd, bd, ft, top, bot 阅读全文
posted @ 2022-10-14 13:53 阿术阿术 阅读(78) 评论(0) 推荐(0) 编辑
  2022年10月10日
摘要: Http.js //Cache.js为自定义缓存功能函数 //可以换做其他存储方式 1 import Cache from "./Cache.js"; 2 3 let Http = { 4 /** 5 * POST请求封装 6 * @param {String} url 7 * @param {Ob 阅读全文
posted @ 2022-10-10 10:45 阿术阿术 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 <view class="input " style="display: flex;"> 2 <span class="title" style="font—size: 16px;">图像信息:</span> 3 <view class="context" > //主要部分 7 <view cl 阅读全文
posted @ 2022-10-10 09:49 阿术阿术 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 格式化时间戳 1 timestampToTime(timestamp) { 2 const dt = new Date(timestamp * 1000) 3 const y = dt.getFullYear() 4 const m = (dt.getMonth() + 1 + '').padSta 阅读全文
posted @ 2022-10-10 09:39 阿术阿术 阅读(210) 评论(0) 推荐(0) 编辑
  2022年9月8日
摘要: 透明度opacity:0~1;基线对齐 .box1 { display: inline-block; width: 100px; height: 100px; background-color: red; color: white; //此处为基线对齐方式 vertical-align: top; 阅读全文
posted @ 2022-09-08 18:46 阿术阿术 阅读(13) 评论(0) 推荐(0) 编辑
  2022年8月17日
摘要: 1,把自定义字体包导入项目 2,font.css文件下 1 字体名 2 字体路径 3,4 字体样式(可省略) 3,App。vue文件中 修改样式中的font-family属性 阅读全文
posted @ 2022-08-17 14:48 阿术阿术 阅读(738) 评论(0) 推荐(0) 编辑
摘要: async function createWindow() { // 注入小段css文件 // mainWindow.webContents.insertCSS(" body,html { -webkit-app-region: drag !important;}") // body,html { 阅读全文
posted @ 2022-08-17 14:43 阿术阿术 阅读(257) 评论(0) 推荐(0) 编辑