用jquery的jsonp可以獲取到裏面的數據,然後隨機數抽取壹個就行
效果在控制臺裏如圖
<script>
$.ajax(妳的那個API地址(我發鏈接可能會被刪掉), {
type: "get",
dataType: "jsonp",?
jsonpCallback: "artiList",?
success: function(d){
var index = parseInt(Math.random() *?d.BA10TA81wangning.length);
console.log(d.BA10TA81wangning[index].title)
}
})
</script>