通过script传递json对象
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<script>
function animalSays1(type,sound){
alert(type+" says1 "+ sound);
}
function animalSays2(animal){
alert(animal.type+" says2 "+ animal.sound);
}
</script>
<script src="http://mis..com/mis/js/includes-extjs/officeSupply/officeSupply_goods.js"></script>
<script src="http://ip/qyweixin/assets/js/test.js?callback=animalSays2"></script>
<title>JSONP学习</title>
<script>
</script>
</head>
<body>
<form name="form1">
<input id="peroidid" type="text">
<input id="supid" type="text">
</form>
</body>
</html>