- 博客(3)
- 收藏
- 关注
原创 mark.js的简单应用
有时候我们搜索需要高亮显示这时mark.js的强大就体现出来了通过运行npm下载npm install mark.js --save-dev使用var context = document.querySelector(".context");var instance = new Mark(context); instance.unmark(); //删除mark.js创建的高光的方法instance.mark(keyword [, options]); //突出显示自定义搜索词的方法更
2021-08-26 11:50:02
1796
原创 解决vue项目启动内存溢出的问题
问题我们在启动vue项目时有时启动内存不足导致启动失败**解决方案npm install -g increase-memory-limit 首先全局下载该npm包increase-memory-limit 在项目目录执行就可以正常启动了
2021-08-19 01:42:05
1240
原创 JavaScript 数组方法
JavaScript 数组方法把数组转换为字符串toString()let color = ["red", "blue", "green", "yellow"];let b=color.toString();console.log(b)//red,blue,green,yellow join()let color = ["red", "blue", "green", "yellow"];let b=color.join("*");console.log(b)//red*
2021-08-19 01:22:20
165
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅