Skip to content

yesapicn/yesapi-vue-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yesapi-vue-sdk

小白接口(YesApi.cn)vue SDK包

使用示例

  1. 开始: npm install
  2. 在yesapi.js配置你的host,app_key, app_secret
  3. 在页面axios请求
  4. 编译运行: npm run serve
methods: {
    function() {
      var params = {
                s: 'App.Hello.World',
                name: 'hello,小白'
            };
            var that = this;
            this.$axios({
              method: 'get',
              url: yesapi.YESAPI_HOST,
              params : yesapi.encrypt(params)
            }).then(function (response) {
                console.log(response);
                that.res = response.data;
            }).catch(function (error) {
                console.log(error);
            });
    }
  },

示例

About

小白接口(YesApi.cn)vue SDK包

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published