JavaScript Tutorial

.jQuery.param()

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery.param demo</title>
  <style>
  div {
    color: red;
  }
  </style>
  <script src="https://code.jquery.com/jquery-1.10.2.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>