Created
October 23, 2014 03:19
-
-
Save biao166/3f26d3e6e4f89f5bf1e6 to your computer and use it in GitHub Desktop.
js 函数
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var encodeParameters = function(arg, parameters) { | |
| var paras = []; | |
| for (var x in parameters) { | |
| paras.push($window.escape(x) + '=' + $window.escape(parameters[x])); | |
| } | |
| return paras.length > 0 ? (arg === -1 ? '?' : '&') + paras.join('&') : ''; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment