04 2020 档案
摘要:在ts文件: ngOnInit() { //页面跳转顶部 this.router.events.subscribe((evt) => { window.scrollTo(0, 0); }); } jq方法: // 以下三种方式均可实现返回页面顶部 $(window).scrollTop(0); $(
阅读全文
摘要:[{ "$id": "1", "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity", "Authenticate": true, "HostInstance": { "$
阅读全文
摘要:选中状态的样式,hover后变成另外一个样式, 解决方法是:在css中hover后面在增加一个hover: 选中时的样式,添加类名: .active { background-color: #217aff; } 鼠标hover时的样式: .remote-style:hover { backgroun
阅读全文
摘要:在HTML中: <p *ngIf="descriCenter.length >= 218"> {{descriCenter | slice :0:218}}... </p> <p *ngIf="descriCenter.length < 218"> {{descriCenter}} </p> 在ts
阅读全文
摘要:html部分: <div class="pctw"> <div class="pcWrap"> <div class="pctw-prize"> <div class="prize-center"> <ul class="prize-center-ul"> <li class="pctw-li1 p
阅读全文