我想在具有某些坐标的Google地图上显示一条折线。条件比较当前时间和我设置的时间
if ( time() == strtotime("21:59".date("Hi") )){
'var flightPlanCoordinates = [
{lat: 0.5683, lng: 101.430202},
{lat: 0.566692, lng: 101.43073}
];
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
geodesic: true,
strokeColor: "#FF0000",
strokeOpacity: 1.0,
strokeWeight: 12
});'
return 'flightPath.setMap(map);';
}
else{
return false;
};
解析错误:语法错误,第254行出现意外的“返回”(T_RETURN)