Closed. This question needs details or clarity。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?添加详细信息并通过editing this post阐明问题。
                        
                        5年前关闭。
                                                                                            
                
        
有人可以帮助我在jQuery中读取此回调数组吗?

{
  "message-count":1,
  "error-text": "Invalid Phone format. Please ensure phone number to be in international format. e.g 447876567655."
}

最佳答案

您可以使用JSON.parse()$.each()

var a=JSON.parse('{ "message-count":1, "error-text":"Invalid Phone format. Please ensusure phone number to be in international format. e.g 447876567655 ." } ');

$.each(a,function(i,v){
   console.log(i+':'+v);
})


Demo

关于javascript - 如何在jQuery中阅读? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21663103/

10-08 21:22