- 博客(13)
- 收藏
- 关注
原创 JavaScript 数组
在这个例子中,我们使用copyWithin()`方法将原数组中的前三个元素替换为[4, 2, x],因此最终输出结果为[4, 2, x]。注意:这里的第二个参数3表示替换的元素个数,因此不会改变原数组的长度。(2)flatMap():该方法使用给定函数将数组中的每个元素映射为一个新的数组元素,并将所有子数组元素连接成一个新数组。(3)sort():该方法对数组元素进行排序,返回一个新的已排序数组。(1)flat():该方法将数组中的所有子数组元素连接成一个新数组。JavaScript 数组。
2023-10-18 10:26:42
79
原创 获取隐藏元素高度
function getRect(dom) { var cloneNode = dom.cloneNode(true); cloneNode.style.position = 'absolute'; cloneNode.style.visibility = 'hidden'; cloneNode.style.pointerEvents = 'none'; cloneNode.style.height = 'unset'; dom.app
2021-04-27 00:08:41
347
原创 Angular 创建指令报错
More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specifya module.加上--module=app
2021-04-06 23:22:02
148
原创 git
git clone git地址git add .git commit -m ‘信息’git pull////发生冲突////git push
2021-03-30 23:20:19
71
原创 vue 出现 {{}}
1. <app style="display: none;" :style="{display: 'block'}"></app>2. v-html
2021-03-01 09:44:43
270
原创 微信小程序
微信小程序引入 weui: WeUI 组件库 报错背景小程序代码在其他开发工具中打开解决确保 project.config.json 文件中的appid与项目appid 一致
2021-02-04 13:04:42
164
原创 Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘input‘.
Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’.在 app.module.ts 中引入 import { NgModel } from "@angular/forms";注册@NgModule({imports: [NgModel]}
2021-02-02 23:34:07
192
原创 echars 绘制多点连线地图 vue
引入echartsimport echarts from 'echarts' // 全局注册echarts Vue.prototype.$echarts = echarts;获取地图所需要的数据http://datav.aliyun.com/tools/atlas/#&lat=30.332329214580188&lng=106.72278672066881&zoom=3.5html<div id="map_bd"></div>请求数据g
2021-01-25 10:50:56
3322
原创 Cannot find module ‘@angular/platform-browser‘ or its corresponding type declarations
Cannot find module ‘@angular/platform-browser’ or its corresponding type declarations原因:node_modules包没有或损坏(删掉重新安装)
2021-01-23 19:50:26
4179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人