// 处理门店地址只要详情地址,去除前面省市区;
sliceStrAddress(Provinces,detailAdd){
if(this.indexCheck ==10){
return detailAdd;
}
let proStr= Provinces.slice(Provinces.length-1,Provinces.length)
let strIndex =this.find(detailAdd,proStr,this.indexCheck);
if(detailAdd.substr(0,strIndex+1) !=Provinces){
this.indexCheck++;
this.sliceStrAddress(this.disposeStoreAddress, this.shopInfo.address);
}else if(detailAdd.substr(0,strIndex+1) ==Provinces){
return detailAdd.substr(strIndex+1,detailAdd.length-1);
}
},
find(str,cha,num){
let index = str.indexOf(cha,num)
return index;
},
去除省市区留下详情地址的封装
最新推荐文章于 2024-08-19 04:01:37 发布
博客围绕去除省市区详情地址的封装展开,但具体内容缺失,推测可能涉及相关信息技术操作,如数据处理、地址信息提取等。

1204

被折叠的 条评论
为什么被折叠?



