日期:2014-05-16 浏览次数:20388 次
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>My Page</title> <script type="text/javascript" src="JS/jquery-1.7.2.js"></script> <script type="text/javascript"> $(function() { $.getJSON("servertime.json", function(data) { var time = data.ts ; alert(data.ts); alert("time:"+time); } ); // end getJSON }); </script> </head> <body> JQuery </body> </html>