本文實(shí)例講述了jQuery訪問json文件中數(shù)據(jù)的方法。分享給大家供大家參考,具體如下:
從事重慶服務(wù)器托管,服務(wù)器租用,云主機(jī),虛擬主機(jī),域名注冊,CDN,網(wǎng)絡(luò)代維等服務(wù)。有時候我們可能需要用到j(luò)son文件存儲數(shù)據(jù),然后通過前臺語言直接進(jìn)行訪問。
首先是json文件:
{ "管道": [ { "ElementId": "標(biāo)識號", "GISID": "GISID", "Label": "編號", "StartNodeID":"起始節(jié)點(diǎn)ID", "EndNodeID":"終止節(jié)點(diǎn)ID", "StartNodeLabel":"起始節(jié)點(diǎn)編號", "EndNodeLabel":"終止節(jié)點(diǎn)編號", "Physical_PipeDiameter":"管徑", "Physical_PipeMaterialID":"管材", "Physical_HazenWilliamsC":"海曾威廉C值", "Physical_Length":"管長", "Physical_MinorLossCoefficient":"局部阻力系數(shù)", "Physical_InstallationYear":"鋪設(shè)年代", "Physical_Address":"地址", "District":"營銷公司", "DMA":"計量區(qū)", "Zone":"行政區(qū)", "flow":"當(dāng)前流量", "velocity":"當(dāng)前流速", "headloss":"當(dāng)前水頭損失" }], "節(jié)點(diǎn)": [{ "ElementId": "標(biāo)識號", "GISID": "GISID", "Label": "編號", "Physical_Elevation":"地面高程", "Physical_Depth":"埋深", "Physical_Address":"地址", "District":"營銷公司", "DMA":"計量區(qū)", "Zone":"行政區(qū)", "hydraulicGrade":"水壓標(biāo)高", "pressure":"自由水壓", "demand":"節(jié)點(diǎn)流量", "cl":"余氯濃度", "age":"水齡", "source":"供水水源" }], "閥門": [{ "ElementId": "標(biāo)識號", "GISID": "GISID", "Label": "編號", "Physical_Elevation":"地面高程", "Physical_Depth":"埋深", "Physical_Diameter":"口徑", "Physical_Status":"閥門狀態(tài)", "Physical_Address":"地址", "District":"營銷公司", "DMA":"計量區(qū)", "Zone":"行政區(qū)", "Physical_InstallationYear":"安裝年代" }], "水表": [{ "DIAMETER":"口徑", "CALIBER": "表徑", "MATERIAL": "材質(zhì)", "DEPTH":"埋深", "HEIGHT":"地面高程", "ADDR":"地址", "WATREGID": "表號", "USERNAME":"用戶名", "JUNCTION":"接口類型", "DISTRICT":"行政區(qū)", "MEASUREIN":"營銷公司", "FINISHDATE":"安裝日期" }], "消火栓": [{ "ElementId": "標(biāo)識號", "GISID": "GISID", "Label": "編號", "Physical_Elevation":"地面高程", "Physical_Depth":"埋深", "Physical_Address":"地址", "District":"營銷公司", "DMA":"計量區(qū)", "Zone":"行政區(qū)", "Physical_Diameter":"口徑", "Physical_Type":"樣式" }] }
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
當(dāng)前名稱:jQuery訪問json文件中數(shù)據(jù)的方法示例-創(chuàng)新互聯(lián)
網(wǎng)站地址:http://m.newbst.com/article16/dpshdg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、定制網(wǎng)站、Google、ChatGPT、面包屑導(dǎo)航、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容