读取生肖JSON数据文件

master
赵鹏 3 years ago
parent 8fbf576e04
commit 486d6bb217

@ -202,7 +202,10 @@ function dozodiacsearch() {
var remainder = (lunarYear - 1900) % 12; var remainder = (lunarYear - 1900) % 12;
//根据求余的数确定生肖 //根据求余的数确定生肖
//直接读取数据库数据2021-12-10 zp //直接读取数据库数据2021-12-10 zp
fetch("https://www.chinahighlights.com/guide-use.php/travelguide/getzodiac/") //直接读取前台生成的生肖JSON数据减少服务器压力。 2022-3-1 zp
var dataurl = "https://www.chinahighlights.com/createjs/zodiac-data.js?temp=1";
//var dataurl = "https://www.chinahighlights.com/guide-use.php/travelguide/getzodiac/";
fetch(dataurl)
.then(function(response){ .then(function(response){
//console.log(response.json()); //console.log(response.json());
if (response.ok) { if (response.ok) {

Loading…
Cancel
Save