json例項練習 json物件

farsun發表於2021-09-09
        


                                        處方藥
                                        
                                    

正頜外科
                                        手術
                                        頜骨畸形造成的口咽和下嚥部氣道阻塞的OSAHS
                                    
                        var data=[
                            {"name":"英夫利西單抗","types":"處方藥","symptom":"克羅恩病"},
                            {"name":"英夫利西單抗","types":"處方藥","symptom":"克羅恩病"},
                            {"name":"英夫利西單抗","types":"處方藥","symptom":"克羅恩病"},
                            {"name":"英夫利西單抗","types":"處方藥","symptom":"克羅恩病"},
                        ]
                    var html=''
                    for(var i in data){
                        html=html+"
"+data[i].name+"
"+data[i].types+"
"+data[i].symptom+"
"
                    }
                    $('#zhiliaoList').html(html)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4289/viewspace-2798093/,如需轉載,請註明出處,否則將追究法律責任。

相關文章