会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
到货
博客园
首页
新随笔
联系
管理
订阅
2020年6月18日
angular4路由传值的几种方式:
摘要: 1.以根路由跳转/login this.router.navigate(['login']); 2.设置relativeTo相对当前路由跳转,route是ActivatedRoute的实例,使用需要导入ActivatedRoute this.router.navigate(['login', 1],
阅读全文
posted @ 2020-06-18 08:48 到货
阅读(508)
评论(0)
推荐(0)
2020年5月8日
微信小程序 详解弹框wx.showToast、wx.showModal、wx.showActionSheet
摘要: 一、wx.showToastwx.showToast({ title: '失败',//提示文字 duration:2000,//显示时长 mask:true,//是否显示透明蒙层,防止触摸穿透,默认:false icon:'success', //图标,支持"success"、"loading" s
阅读全文
posted @ 2020-05-08 10:15 到货
阅读(1372)
评论(0)
推荐(0)
2020年4月29日
angular http请求封装(带token)
摘要: 1,创建一个ts文件; 2,base-interceptor.ts;写入代码: import { Injectable } from '@angular/core'; import { Router,ActivatedRoute } from '@angular/router'; import {
阅读全文
posted @ 2020-04-29 14:40 到货
阅读(2105)
评论(0)
推荐(0)
2020年4月26日
angular 引用 echarts.js案例
摘要: 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 到货
阅读(279)
评论(0)
推荐(0)
微信接口请求带token封装
摘要: var apiHost = "地址"; var tokenKey = "token"; // 登录地址, 根据这个地址来设置token var logInUrl = "/Account/LogInForMiniProgram"; // 例外不用token的地址 var exceptionAddrAr
阅读全文
posted @ 2020-04-26 10:40 到货
阅读(966)
评论(0)
推荐(0)
2020年4月20日
微信浏览器视频播放完后,自动跳qq浏览器得解决方法
摘要: 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 到货
阅读(1753)
评论(0)
推荐(0)
2020年4月7日
微信小程序data-传参案列
摘要: <view bindtap="change" data-index="{{index}}">案列</view> change(event){ const dataset = event.target.dataset; const index = dataset.index }
阅读全文
posted @ 2020-04-07 15:50 到货
阅读(228)
评论(0)
推荐(0)
2017年11月8日
type=button和type=submit
摘要: type=button 就单纯是按钮功能 type=submit 是发送表单但是对于从事WEB UI的人应该要注意到,使用submit来提高页面易用性:使用submit后,页面支持键盘enter键操作,而很多WEB软件设计师,可能没有注意到submit统一. 用button后往往页面不支持enter
阅读全文
posted @ 2017-11-08 12:01 到货
阅读(1139)
评论(0)
推荐(0)
公告