that.test1().then(res => { return that.test2(res);}).then(res => { console.log(res); }) test1(){ var that = this; var p = new Promise((resolve,reject) ...
分类:
其他好文 时间:
2019-12-30 11:10:13
阅读次数:
40
一、vue项目与django项目的交互 vue中的发送ajax请求,其中的参数有: created() { this.$axios({ url: 'http://127.0.0.1:8000/test/', // 请求地址 method: 'post', // 请求方式 params: { // 拼 ...
分类:
其他好文 时间:
2019-12-29 23:26:54
阅读次数:
101
1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 5 # 构建数据 6 def build_data(): 7 res = np.load("./国民经济核算季度数据.npz", allow_pickle=True) 8 colum ...
分类:
其他好文 时间:
2019-12-29 20:41:36
阅读次数:
299
1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 5 def show_data(columns, values): 6 """ 7 绘图展示 8 :param columns: 名称 9 :param values: 真实数据 1 ...
分类:
其他好文 时间:
2019-12-29 20:13:50
阅读次数:
192
6.1.comments插件 (1)安装 pip install django-contrib-comments (02)settings INSTALLED_APPS = [ 'django.contrib.sites', 'django_comments', ] SITE_ID =1 (3)we ...
分类:
数据库 时间:
2019-12-27 13:45:00
阅读次数:
83
如果横轴坐标文字过长,如一下一样 可以使用换行显示 在xAxis.axisLabel使用formatter回调函数实现换行 axisLabel : {//坐标轴刻度标签的相关设置。 formatter : function(params){ var newParamsName = "";// 最终拼 ...
分类:
其他好文 时间:
2019-12-26 21:37:50
阅读次数:
99
NearestNeighbors(n_neighbors=5, radius=1.0, algorithm='auto', leaf_size=30, metric='minkowski', p=2, metric_params=None, n_jobs=None) Parameters(参数): ...
分类:
其他好文 时间:
2019-12-26 19:17:16
阅读次数:
332
vue路由url 传参 :params 从客户列表页 通过路由跳转到客户详情页 查看客户详情时 需要将当前客户的id 和所属企业的id 当做参数传给后台。 在跳转时,将客户id 和企业id 通过路由传参 传给 客户详情页 客户列表: 客户详情 通过 this.$router.params 获取 参数 ...
分类:
其他好文 时间:
2019-12-26 17:59:44
阅读次数:
77
1.路由表配置:参数地址栏显示 <Route path="/list/:id" component={List} />html:<Link to='/list/2' >跳转列表页面</Link>Js: this.props.history.push('/list/2');List页面接收: cons ...
分类:
其他好文 时间:
2019-12-25 20:17:15
阅读次数:
83
后台 @RequestMapping(params = "datagrid3") public void datagrid3(LdcOrderTaxEntity decOrder,HttpServletRequest request, HttpServletResponse response, Da ...
分类:
其他好文 时间:
2019-12-25 15:46:18
阅读次数:
350