摘要:
{"type":"dark","colors":{"dropdown.background":"#414339","list.activeSelectionBackground":"#75715E","quickInputList.focusBackground":"#414339","dropdo 阅读全文
摘要:
Object.entries 返回键/值对数组:[ ["name","John"], ["age", 30] ]。这就是 Map 所需要的格式 let obj = { name: "John", age: 30 }; let map = new Map(Object.entries(obj)); a 阅读全文
摘要:
// 跳转到登录页 let pages = getCurrentPages(); //获取加载的页面 let currentPage = pages[pages.length - 1]; //获取当前页面的对象 let url = currentPage.route; if (url == 'pag 阅读全文
摘要:
//在babel.config.js添加这条 "dev:wx": "npm run build:weapp -- --watch --env production",//这是新增的 "dev:weapp": "npm run build:weapp -- --watch",//这是原来的 阅读全文
摘要:
getParams() { //获取url中"?"符后的字串 let url = "http://xx.xxxx.com.cn/?ClubSN={0}&PartnerSN=#/goods/distributionGoodsDetail?ProId=100259&DaId=34"; if (url.i 阅读全文
摘要:
res.bgColor.split(/[()]/) 阅读全文
摘要:
getTime(t) { //获取当前时间 let date = new Date(); let now = date.getTime(); //设置截止时间 let endDate = new Date(t); let end = endDate.getTime(); //时间差 let left 阅读全文
摘要:
<view class='buttonBuy' :style="buttonImg"> buttonImg: { backgroundImage: "url(" + require("@/static/images/activityTemplate/activityTwo/button.png") 阅读全文
摘要:
https://blog.csdn.net/u013633921/article/details/114014500 阅读全文
摘要:
<template> <!-- 立即购买按钮 --> <view class='comButton'> <view class="buy" :style="{width:width,height:height,marginTop:marginTop,marginBottom:marginBottom 阅读全文