上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 国家公祭日的时候,各大网站颜色都变成了灰色,这个效果身为身为程序员的我必须得了解了解~ 它与一个属性有关 CSS3 filter(滤镜) 属性 修改所有图片的颜色为黑白 (100% 灰度): img { -webkit-filter: grayscale(100%); /* Chrome, Safa 阅读全文
posted @ 2020-12-15 13:38 我和我的小生活 阅读(553) 评论(0) 推荐(0) 编辑
摘要: <ion-select *ngSwitchCase="'MC'" interface="action-sheet" multiple="true" cancelText="{{'Cancel'| translate}}" okText="{{'Ok'| translate}}" [class.inv 阅读全文
posted @ 2020-12-11 10:57 我和我的小生活 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 首先运行创建组件的命令ng g component components/news 这样就会在app下生成一个components文件夹,在components下面生成了news组件新建好以后它会自动在app.module.ts中,引入并声明这个组件import {NewsComponent} fr 阅读全文
posted @ 2020-12-11 10:56 我和我的小生活 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: angular中的响应式表单 FormGroup新建,获取Form Group的值 在HTML中: <form [formGroup]="loginFormGroup"> //将这个FormGroup和FormGroup属性绑定起来 <div class="div_f"> <div class="d 阅读全文
posted @ 2020-12-11 10:55 我和我的小生活 阅读(2763) 评论(0) 推荐(0) 编辑
摘要: 1.就是{{'Save'|translate}} 就是在要翻译的后面直接加上translate2.对于弹出框...来说的 this.translateService.get().subscribe(....① this.translateService.get(['This_Field_Is_Not 阅读全文
posted @ 2020-12-11 10:54 我和我的小生活 阅读(368) 评论(0) 推荐(0) 编辑
摘要: get maxlengthMessage() { this.translateService.get(['The_Field_Does_Not_Exceed','Characters']).subscribe(res=>{ maxlengthMessageStr= res['The_Field_Do 阅读全文
posted @ 2020-12-11 10:52 我和我的小生活 阅读(97) 评论(0) 推荐(0) 编辑
摘要: //邮箱验证,网上找到的正则var RegEmail = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; 阅读全文
posted @ 2020-12-11 10:43 我和我的小生活 阅读(2292) 评论(0) 推荐(0) 编辑
摘要: $('dl').hide(); $(function () { $("li.mainmenu").mouseover(function () { $(this).children("dl").show(); }) }) $(function () { $("li.mainmenu").mouseou 阅读全文
posted @ 2020-12-11 10:42 我和我的小生活 阅读(553) 评论(0) 推荐(0) 编辑
摘要: //Check to see if the window is top if not then display button $(window).scroll(function () { if ($(this).scrollTop() > 300) { $('.scrollToTop').fadeI 阅读全文
posted @ 2020-12-11 10:40 我和我的小生活 阅读(85) 评论(0) 推荐(0) 编辑
摘要: goToDetailView(Id,StartDate,EndDate) { let date = new Date(); let startdate=new Date(StartDate); let enddate=new Date(EndDate); if(date>=startdate && 阅读全文
posted @ 2020-12-11 10:39 我和我的小生活 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页