注册 登录
编程论坛 JavaScript论坛

高手来~共同探讨~

wlzn1989 发布于 2011-08-19 18:48, 545 次点击
这是一段天气软件的代码,怎样修改才能把天气源改成www.???小弟刚研究,万望高手帮忙,焦头烂额了。。。先谢谢大家了!!!!!!!// Use to find your weathercode
// For example searching for London, UK will get you this URL
// http://www.
// The last part UKXX0085 is the weathercode to use
var locale = "CHXX0313" //Zipcode, Postalcode, or Weathercode
var isCelsius = true //true or false
var useRealFeel = false
var updateInterval = 120  //Minutes
var showForecast = true
// If you would rather use your own Lockscreen Background
// set showBackground to true and overwrite the included
// LockBackground.png file
var showBackground = true
var showWeatherAni = true
3 回复
#2
外部三电铃2011-08-19 19:14
这一小段代码说明不了任何问题,还是从整体上研究吧
#3
wlzn19892011-08-19 20:19
回复 2楼 外部三电铃
这段代码就是一个文件,修改城市的时候修改那个CHXX就行,但是雅虎天气没有我的城市,所以我想改成www.,这样改不了吗?谢谢~
#4
scilent2011-08-20 18:29
以下是引用wlzn1989在2011-8-19 18:48:10的发言:

这是一段天气软件的代码,怎样修改才能把天气源改成www.???小弟刚研究,万望高手帮忙,焦头烂额了。。。先谢谢大家了!!!!!!!// Use to find your weathercode
// For example searching for London, UK will get you this URL
// http://www.
// The last part UKXX0085 is the weathercode to use
var locale = "CHXX0313" //Zipcode, Postalcode, or Weathercode
var isCelsius = true //true or false
var useRealFeel = false
var updateInterval = 120  //Minutes
var showForecast = true
// If you would rather use your own Lockscreen Background
// set showBackground to true and overwrite the included
// LockBackground.png file
var showBackground = true
var showWeatherAni = true
呵呵,这只不过定义了几个变量,改这里不行的
就像楼上所说的chxx0313是城市名
但不一样的网站,这部分都不一样的
你这样做是没有意义的
1