文章目錄
1
2
3
4
function jsonp(res){
console.log(res.name)
}
jsonp({"name":"joe"});//2

输出joe
标记为2你可以放到任何域名下的
xxx.js里
xxx.php里
xxx.do里、、、

文章目錄