js正則匹配经纬度(经纬度逗号隔开)

高德坐標:31.2807691689,112.5382624525

regexp: {//正则验证
    regexp: /^([0-9]+.{0,1}[0-9]{0,})+\,+([0-9]+.{0,1}[0-9]{0,})$/,
    message: '高德坐標格式錯誤'
}

 

原文地址:https://www.cnblogs.com/clubs/p/10644303.html