修改天气预报获取规则

master
cyc 5 years ago
parent 51394c266b
commit f4e21d5d5d

@ -2,7 +2,7 @@
$(function(){
var url = window.location.pathname;
//var url = '/vietnam/halong-bay/weather.htm';
var matches = /(\w+)\/((\w|-)+)\/weather.htm/.exec(url);
var matches = /(\w+)\/((\w|-)+)\/weather/.exec(url);
var country = matches[1];
var city = matches[2];
if(country && city){
@ -24,7 +24,7 @@ $(function(){
});
</script>
<link rel="stylesheet" type="text/css" href="/css/guide.css"/>
<link rel="stylesheet" type="text/css" href="https://data.asiahighlights.com/min/?f=/css/guide.css"/>
<div class="weatherForecast">
<!-- 插入天气代码 -->
</div>

Loading…
Cancel
Save