jQuery.param(); 的用法

<!DOCTYPE html>
<html>
<head>
  <style>div { color:red; }</style>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
</head>
<body>
	<div id="results"></div>
<script>

    var params = { width:1680, height:1050 };
    var str = jQuery.param(params);
    $("#results").text(str);
</script>
</body>
</html>

你可能感兴趣的:(jquery)