摘要: 1.以根路由跳转/login this.router.navigate(['login']); 2.设置relativeTo相对当前路由跳转,route是ActivatedRoute的实例,使用需要导入ActivatedRoute this.router.navigate(['login', 1], 阅读全文
posted @ 2020-06-18 08:48 到货 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 一、wx.showToastwx.showToast({ title: '失败',//提示文字 duration:2000,//显示时长 mask:true,//是否显示透明蒙层,防止触摸穿透,默认:false icon:'success', //图标,支持"success"、"loading" s 阅读全文
posted @ 2020-05-08 10:15 到货 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 1,创建一个ts文件; 2,base-interceptor.ts;写入代码: import { Injectable } from '@angular/core'; import { Router,ActivatedRoute } from '@angular/router'; import { 阅读全文
posted @ 2020-04-29 14:40 到货 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: 1,angular.json中引用 "node_modules/echarts/dist/echarts.js"; 2,html:<div echarts [options]='chartOption' class='demo-chart'></div>; 3,初始化数据: ssss = { tit 阅读全文
posted @ 2020-04-26 11:07 到货 阅读(256) 评论(0) 推荐(0) 编辑
摘要: var apiHost = "地址"; var tokenKey = "token"; // 登录地址, 根据这个地址来设置token var logInUrl = "/Account/LogInForMiniProgram"; // 例外不用token的地址 var exceptionAddrAr 阅读全文
posted @ 2020-04-26 10:40 到货 阅读(918) 评论(0) 推荐(0) 编辑
摘要: html: <video id="my-video" class="video-js " controls poster="{{tuUrl}}" controlslist="nodownload" id='end' src="{{safeUrl}}"> </video> js: doms; show 阅读全文
posted @ 2020-04-20 10:57 到货 阅读(1500) 评论(0) 推荐(0) 编辑
摘要: <view bindtap="change" data-index="{{index}}">案列</view> change(event){ const dataset = event.target.dataset; const index = dataset.index } 阅读全文
posted @ 2020-04-07 15:50 到货 阅读(223) 评论(0) 推荐(0) 编辑
摘要: type=button 就单纯是按钮功能 type=submit 是发送表单但是对于从事WEB UI的人应该要注意到,使用submit来提高页面易用性:使用submit后,页面支持键盘enter键操作,而很多WEB软件设计师,可能没有注意到submit统一. 用button后往往页面不支持enter 阅读全文
posted @ 2017-11-08 12:01 到货 阅读(1072) 评论(0) 推荐(0) 编辑