Smart Weather
city = GetCookie(“city”);
if(!city){
city = LookupCity(REMOTE_ADDR);
if(city){
SetCookie(“city”,city);
}
else{
city = “Beijing”;
}
}
WeatherShow(city);
// TODO: GetCookie / SetCookie / LookupCity / WeatherShow
No Comments »
RSS feed for comments on this post. TrackBack URL
Leave a comment
You must be logged in to post a comment.