कैसे json लेनदेन के लिए जानकारी को हल करने के लिए

लेखक:पत्ते, बनाया गयाः 2018-06-05 16:32:57, अद्यतन किया गयाः 2019-07-31 17:33:32

नीति पैरामीटर बुनियादी जानकारी के लिए लेनदेन को कॉन्फ़िगर करते हैं। नीचे, कम से कम कुंजी और मान प्राप्त करने के लिए जेएस का उपयोग करके कैसे हल करें। { bigone : { BTC/USDT :{ ############################################################################################ amount_prec: 5, buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount: 0.01, यह एक बहुत ही अच्छा विचार है। mintrd_type : quote pause_rounds: 5, price_prec:3, sell_fee_ratio : 0.001 }, ईओएस/बीटीसी के लिएः { amount_prec:1, buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount : 5, mintrd: 0.001, mintrd_type : quote pause_rounds: 5, price_prec: 8, sell_fee_ratio : 0.001 }, EOS/USDT :{ amount_prec: 4 buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount : 5, यह एक बहुत ही अच्छा विचार है। mintrd_type : quote pause_rounds: 5, price_prec:3, sell_fee_ratio : 0.001 }, ETC/BTC :{ amount_prec: 2 buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount 4: mintrd: 0.001, mintrd_type : quote pause_rounds: 5, price_prec: 8, sell_fee_ratio : 0.001 }, ETH/BTC :{ amount_prec: 4 buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount : 0.1, mintrd: 0.001, mintrd_type : quote pause_rounds: 5, price_prec: 8, sell_fee_ratio : 0.001 }, ETH/EOS :{ amount_prec: 4 buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount : 0.1, मिंटर्ड : 1 mintrd_type : quote pause_rounds: 5, price_prec: 1 sell_fee_ratio : 0.001 }, ETH/USDT :{ ############################################################################################ amount_prec: 4 buy_fee_ratio : 0.001, @Delay_threshold @Delay_threshold @300: depth_ratio : 0.2, maxtrd_amount : 0.1, यह एक बहुत ही अच्छा विचार है। mintrd_type : quote pause_rounds: 5, price_prec:3, sell_fee_ratio : 0.001 } .. .. } }

HTML में प्रयोग करने का प्रयास करें, आविष्कारक में मात्रा में त्रुटि, मान प्राप्त नहीं कर सकते हैं। कोडः function main (() { लॉग ((पैरामीटर); for (var i in parameter) { के लिए for (var j in parameter[i]) { for (var k in parameter[i][k]) { लॉग (क: क + क + क == क + पैरामीटर [i][j][k]); } } } } मुद्रित जानकारीः

समय प्लेटफार्म प्रकार कीमतें मात्रा जानकारी 2018-06-04 00:00:00 जानकारी { bigone:{ BTC/USDT:{ enable:0, amount_prec:5,


संबंधित

अधिक

छोटे सपने`` function Iterator ((dict, name) { if ((typeof ((dict)!== "object") { लॉग ((नाम, " ": ", dict) return }else{ लॉग ((नाम, "#FF0000") } for ((var k in dict) { Iterator ((dict[k], k) } } function main (() { var jsonObj = { "बिगोन": { "बीटीसी/USDT": { "सक्षम करें": 0, "amount_prec": 5, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 0.01, "mintrd": 10 "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 3, "sell_fee_ratio": 0.001 }, EOS/BTC: { "amount_prec": 1, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 5, "mintrd": 0.001, "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 8, "sell_fee_ratio": 0.001 }, EOS/USDT: { "amount_prec": 4, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 5, "mintrd": 10 "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 3, "sell_fee_ratio": 0.001 }, "ETC/BTC": { "amount_prec": 2, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 4, "mintrd": 0.001, "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 8, "sell_fee_ratio": 0.001 }, "ETH/BTC": { "amount_prec": 4, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 0.1, "mintrd": 0.001, "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 8, "sell_fee_ratio": 0.001 }, "ETH/EOS": { "amount_prec": 4, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 0.1, "mintrd": 1, "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 1, "sell_fee_ratio": 0.001 }, "ETH/USDT": { "सक्षम करें": 0, "amount_prec": 4, "buy_fee_ratio": 0.001, "delay_threshold": 300, "depth_ratio": 0.2, "maxtrd_amount": 0.1, "mintrd": 10 "mintrd_type": "quote", "pause_rounds": 5, "price_prec": 3, "sell_fee_ratio": 0.001 } } } .. Iterator ((jsonObj) } `` https://dn-filebox.qbox.me/f9da2672a41086d4a6bc825df53cdd27c5885431.png ### एक सरल, शायद अधूरा, संदर्भ के लिए लिखा है.

छोटे सपनेJS में JSON ऑब्जेक्ट के लिए सीधे for... in... का उपयोग किया जा सकता है, और यदि कोई कुंजी मान प्राप्त करना है, तो सीधे कुंजी नाम का उपयोग करके प्राप्त किया जा सकता है।

पत्तेठीक है

छोटे सपनेमैं अभी-अभी जो पोस्ट किया है, वह काम नहीं कर रहा है।

पत्ते@किशोरछोटी सपना मैंने यही किया और गलत मूल्य प्राप्त किया