Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/546669204/datav-cube-js

datav-cube-js
https://github.com/546669204/datav-cube-js

Last synced: 12 days ago
JSON representation

datav-cube-js

Awesome Lists containing this project

README

        

# demo

```js
//注册 jquery
Cube.register('jquery', $);

var appConfig = {
base: '//cdn-service.datav.aliyun.com/datav-static/2.18.9_3/',
debug: false
};
//初始化
Cube.init({
base: appConfig.base,
debug: appConfig.debug,
version: '',
enableCss: true,
strict: false,
global: window,
remoteBase: {
'datav': '//resource.datav.aliyun.com/cube/',
'main': '/static'
},
timeout: 60000
});

//调用依赖
Cube.use(['index.js'], function (index) {
index.run();
})

//载入依赖
Cube("model",["model"],function(a,b,c){
//import axios from "axios";
const axios = c("axios");

a.exports = {};

return a.exports
})

```