花开两朵 各表一枝
如果单纯在我所在的位置显示“Where I am.”,就会显得过于单一,所以思量着上网顺便学学国学,本来想上载《近思录》或者《中庸》节选,在某人的建议下上传了《论语》的经典对话。首先在guoxue.baidu.com上下载了论语,然后将对白整理成json格式,而后通过adobe.serialization.json类去读取,并解析为array。这样随机选择其中一条放入infomapwindow的content参数里面。关于随机数选取是需要注意的地方,我运用了如下语句:
var cnt:String = jsonObj[Math.floor(Math.random() * (jsonObj.length + 1))].item;
okey,大功告成,是以记之。
子曰:默而识之,学而不厌,诲人不倦,何有于我哉?
No related posts.
About this entry
You’re currently reading “花开两朵 各表一枝,” an entry on Geoinformatics
- Published:
- 12.22.09 / 2上午
Ajax ArcGIS Dreams Flex Geography Geoinformatics GeoRSS GIS Google Hardware Harvard History Jquery Linux Love Map MapServer NASA OGC OpenGIS OSGeo PHP Politics PostGIS PostgreSQL Python R Social Network SVG Ubuntu Web WebGIS Wordpress 中国 历史地理 宋朝 开源 新儒学 生活 遥感
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.















赵 博 (Bo Zhao),
参与或主持的项目
No comments
Jump to comment form | comments rss [?] | trackback uri [?]