<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script type="text/javascript">
document.addEventListener('plusready', function(){
var xhr = new plus.net.XMLHttpRequest();
xhr.onreadystatechange = function () {
	switch ( xhr.readyState ) {
		case 0:
			//alert( "xhr请求已初始化" );
		break;
		case 1:
			/alert( "xhr请求已打开" );
		break;
		case 2:
			//alert( "xhr请求已发送" );
		break;
		case 3:
			//alert( "xhr请求已响应");
			break;
		case 4:
			if ( xhr.status == 200 ) {
				alert( "xhr请求成功:" xhr.responseText );
			} else {
				alert( "xhr请求失败:" xhr.readyState );
			}
			break;
		default :
			break;
	}
}
xhr.open( "GET", "http://hq.sinajs.cn/list=sz000559,sh603729,sh600460,sz300056,sz002558,sz000037,sz002236,sz000546,sh603959,sh600754,sz300630,sz300298" );
xhr.send();
}, false );
	</script>
</head>
	<body>
	</body>
</html>



Leave a Reply