- 博客(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 499
原创 JS 正则的使用(积累ing...)
JS判断是否有特殊字符let containSpecial = RegExp(/[(\ )(\~)(\~)(\!)(\!)(\@)(\#)(\$)(\¥)(\%)(\^)(\……)(\&)(\*)(\()(\()(\))(\))(\-)(\_))(\——)(\+)(\=)(\[)(\【)(\])(\】)(\{)(\})(\|))(\、))(\)(\\)(\;)(\;)(\:)(\:)(\')(\‘)(\’)(\")(\“)(\”)(\,)(\,)(\.)(\。)(\/)(\《)(\<)(
2021-09-06 13:55:03 101
转载 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 787
原创 [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 370
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人