字典是python的一种数据结构,由{‘键’:‘值’}对组成。第一种利用字典自身的方法dict.items()遍历mydict = { "key1": 10.00, "key2": "This is string", "key3": [1,2,3]}f... Read More
posted @ 2018-10-20 17:12 hitrjj Views(324) Comments(0) Diggs(0) Edit
加载本地json文件1.加载本地json文件为了调试保存在本地的json数据,需要进行读入。一般使用jQuery来进行,但需要对浏览器进行一点设置。Chrome浏览器中有一个启动选项--allow-file-access-from-files,在启动的时候需... Read More
posted @ 2018-10-20 15:48 hitrjj Views(799) Comments(0) Diggs(0) Edit