摘要:
当你在TypeScript中使用 for...in 循环遍历一个对象时,你可能会碰到这样的类型错误,这是因为 TypeScript 静态类型检查的规则,需要明确的知道你正在访问的对象属性的类型。 对于这种情况,你可以使用类型断言(Type Assertion)来明确你所知道的更具体的类型 // 假设 阅读全文
摘要:
在Mac上安装好之后,在系统偏好设置里找到mysql,点击并选择启动mysql; 打开终端面板,输入:mysql -u root -p 问题来了,因为之后显示的是:-bash: mysql: command not found (这是什么意思?怎么办?怎么办?多幸运你看到这篇文章了,不用像我一样花很 阅读全文
摘要:
if (typeof __wxConfig == "object"){ let version = __wxConfig.envVersion; console.log("当前环境:" + version) if (version == "develop"){ //工具或者真机 开发环境 } els 阅读全文
摘要:
在 postcssPxToViewport 配置中加上 propList postcssPxToViewport({ propList: ['*', '!transform-origin'] }) 阅读全文
摘要:
加上一下两个属性 :observer="true" :observer-parents="true" 阅读全文
摘要:
运行以下命令 iex "& {$(irm get.scoop.sh)} -RunAsAdmin" 阅读全文
摘要:
const arr = [1, 5, 3, 7, 9, 21, 33, 18, 12, 44, 43, 22, 55, 66, 65] const result = arr => { // 存储最小值 let minMax = 0 // 存储最大值 let max = 0 arr.forEach(i 阅读全文
摘要:
<GkEchart :key="eChartOptions" v-if="options" :data="chartData" echart-id="priceChart" :options="options" :width="347" :height="280" /> 给组件加上一个改变的 key 阅读全文
摘要:
<div class="content-link"> <span id="link" class="content-link-url ellipsis">{{ userInfo?.user.referralUrl }}</span> <CopyIcon @click="copyUrl" class= 阅读全文
摘要:
<div ref="scrollDiv" class="prime-tip"> <div id="scroll_begin" class="item-wrap"> <span v-for="item in promotionInfoVo?.promotionConfigList" :key="ite 阅读全文