自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

转载 mapboxgl.map适应边界框

// 加载地图事件initMap() { mapboxgl.accessToken = 'pk.ey/保密……Mg'; let sources = { 'tdt-img': {//影像底图 'type': 'raster', 'tiles': [ 'http://保密……', ], 'tileSize': 256.

2021-09-28 16:45:33 469

原创 JS 正则的使用(积累ing...)

JS判断是否有特殊字符let containSpecial = RegExp(/[(\ )(\~)(\~)(\!)(\!)(\@)(\#)(\$)(\¥)(\%)(\^)(\……)(\&)(\*)(\()(\()(\))(\))(\-)(\_))(\——)(\+)(\=)(\[)(\【)(\])(\】)(\{)(\})(\|))(\、))(\)(\\)(\;)(\;)(\:)(\:)(\')(\‘)(\’)(\")(\“)(\”)(\,)(\,)(\.)(\。)(\/)(\《)(\<)(

2021-09-06 13:55:03 82

转载 JS replaceAll方法

JS 字符串替换操作有replace() 方法。但是这个方法有些问题,就是只能替换目标字符串中第一个匹配的字符串。 如下例:var str = "wordwordwordword"; var strNew = str.replace("word","Excel"); alert(strNew);如果要将目标字符串全部替换的话,java里可以用replaceAll,但是JS 没有提供这样的方法。使用正则表达式可以达到replaceAll的效果:str.replace(/word/g,"

2021-09-06 11:10:01 746

原创 [vue] <Input v-model=“item“>: You are binding v-model directly to a v-for iteration alias.

报错代码报错信息<Input v-model="item">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an a.

2021-09-06 10:36:44 351

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除