json 트랜잭션 정보를 분석하는 방법

저자:, 2018-06-05 16:32:57, 2019-07-31 17:33:32로 업데이트되었습니다.

정책 파라미터들은 트랜잭션에 대한 기본적인 정보를 구성한다. 아래와 같이, js를 사용하여 어떻게 해독할 것인가, 최소한 키와 값을 얻을 수 있다. { 비고네 : { BTC/USDT: { 네이블: 0 amount_prec: 5, buy_fee_ratio : 0.001, delay_threshold:300, depth_ratio : 0.2, maxtrd_amount: 0.01 민트르드 :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, 민트르드 :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, 4번 maxtrd_amount: 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, 민트르드 :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, 민트르드 :10 mintrd_type : quote pause_rounds: 5 price_prec: 3 sell_fee_ratio : 0.001 ♪ ♪ 이 모든 것은 이 모든 것은 ♪ ♪ ♪ ♪

HTML에서 사용하려고 시도해도, 발명자 측량에서 오류가 발생하여 값을 얻을 수 없습니다. 코드: function main ((() { 로그 ((parameter); for (var i in parameter) { for (var j in parameter[i]) { for (var k in parameter[i][k]) { Log (의 k: + 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") { 로그 (name, ":", dict) return 다른 사람 로그 (명, "#FF0000") ♪ ♪ for ((var k in dict) { 이테레이터 ((dict[k], k) ♪ ♪ ♪ ♪ function main (() { var jsonObj = { "bigone": { "BTC/USDT": { "Enable": 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": { "Enable": 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 ♪ ♪ ♪ ♪ ♪ ♪ 이 모든 것은 이터레이터 (jsonObj) ♪ ♪ `` https://dn-filebox.qbox.me/f9da2672a41086d4a6bc825df53cdd27c5885431.png ### 간단하고, 완벽하지 않을 수도 있는 글을 썼습니다. 참고하십시오.

작은 꿈JS에서는 JSON 객체를 직접 for... in...로 탐색할 수 있고, 키 값을 얻기 위해서는 키 이름을 직접 사용할 수 있다.

좋아

작은 꿈제가 방금 보낸 글은 작동하지 않습니다.

@小小夢: 제가 그렇게 해서 잘못된 값을 얻었습니다.