Skip to content

TankCJZ/JsonpDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonpDemo

实现一个简单的jsonp库

使用
new Jsonp({
  url: 'https://c.y.qq.com/splcloud/fcgi-bin/smartbox_new.fcg?format=jsonp&key=晴天&jsonpCallback=call&format=jsonp',
  callbackName: 'call',
  success: function(result){
    console.log(result);
  },
  error: function(){
    
  }
});

callbackName为服务器返回的函数调用名

About

超简单的实现一个jsonp库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published