服务器返回json字符串数据,小程序数据怎么解析??
web api 返回的数据是这种格式,wx怎么给解析出来,希望高手指点一下
"{ordernum:\“1519982522\” ,
price:\“2.00\”,
state:\“此票已退款\”,
endtime: \“2018/3/2 11:24:26\”}"
10 回复
<view class=‘txt_type101’>{{ticketAll}}</view>
<!-- <view class=‘txt_type101’>{{TicketDetail}}</view> -->
<view class=‘txt_type101’>{{Ticketname}}</view>
<view class=‘txt_type101’>{{Ticketordernum}}</view>
<view class=‘txt_type101’>{{Ticketprice}}</view>
<view class=‘txt_type101’>{{Ticketstate}}</view>
<view class=‘txt_type101’>{{Tickettime}}</view>