形同如下代码,在Thread中调用Toast显示错误信息:new Thread(new Runnable(){ @Override public void run() { try{ weather...
分类:
编程语言 时间:
2014-11-21 01:17:50
阅读次数:
946
var url = NSURL(string: "http://www.weather.com.cn/data/sk/101120501.html") var data = NSData(contentsOfURL: url!, options: NSDataReadingOptions.Da...
分类:
编程语言 时间:
2014-11-19 15:54:49
阅读次数:
233
1、设置一二级域名共用的cookie:设置domain为一级域名,可一、二级域名共用的cookie$.cookie('f_city','北京|101010100|,锦州|101070701|',{expires: 999, path: '/',domain: 'weather.com.cn'})2、...
分类:
Web程序 时间:
2014-11-17 15:32:03
阅读次数:
340
============问题描述============ {"weatherinfo":{"city":"北京","cityid":"101010100","temp1":"2","temp2":"15","weather":"小到中雨转小雨","img1":"d21.gif","img2":"n7...
分类:
移动开发 时间:
2014-11-08 15:06:56
阅读次数:
185
最近楼主在swift的自学中痛并快乐着,这个最简单的天气预报功能遇到了好多小坑, 吐血记录下代码./ ViewController.swift// Weather//// Created by angela on 14/11/6.// Copyright (c) 2014年 angela. ...
分类:
移动开发 时间:
2014-11-07 18:53:34
阅读次数:
142
在树莓派上我们可以通过”wether”工具来以命令行的方式获取天气预报信息。
首先当然是安装Weather工具,,通过命令行 sudo
apt-get
install
weather-util
安装结束后便可以通过不通的方式获取天气预报了。
最简单的获取天气状况的方法是使用ICAO代码(International
Civil Aviation Organizatio...
分类:
其他好文 时间:
2014-10-31 23:42:25
阅读次数:
245
ctags 安装:yum install ctags 配置:在项目根目录下执行 ctags -R * ? ,这时会生成tags文件,在 .vimrc文件末尾处添加 ? ? ? ??set tags=/workspace/weather/tags? ????2. cscope ????安装:y...
分类:
系统相关 时间:
2014-10-28 21:54:46
阅读次数:
1665
百度天气 接口地址:http://api.map.baidu.com/telematics/v3/weather?location=上海&output=json&ak=hXWAgbsCC9UTkBO5V5Qg1WZ9,其中ak是密钥,自行去申请即可,便于大家测试,楼主就公布并了自己的Key,这样可....
public interface Subject {public void registerObserver(Observer o);public void removeObserver(Observer o);public void notifyObservers();}public interf...
分类:
其他好文 时间:
2014-10-24 06:52:09
阅读次数:
186
iphone6 外观:http://www.html5tricks.com/demo/css3-iphone6/index.html天气图标:http://www.html5tricks.com/demo/pure-css3-weather-icon/index.html3D太空船:http://w...
分类:
Web程序 时间:
2014-10-21 19:11:55
阅读次数:
203