Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/546669204/datav-cube-js
- Owner: 546669204
- Created: 2019-07-25T09:27:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-25T10:29:44.000Z (over 5 years ago)
- Last Synced: 2024-11-07T11:24:01.043Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
})```