[fix] param serialization

pull/1/head
Ziqiang Li 2017-08-18 15:47:26 +08:00
parent dc27282ed7
commit 786e0bf7ec
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "simple-jsonp-promise",
"version": "1.0.5",
"version": "1.0.6",
"description": "",
"main": "build/index.js",
"scripts": {

View File

@ -39,7 +39,7 @@ function jsonp( url, options ) {
}
function serialize( params ) {
let param = '';
let param = '?';
for ( let key in params ) {
if ( params.hasOwnProperty( key ) ) {
param += `&${key}=${encodeURIComponent( params[ key ] )}`;