摘要: <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) 编辑
摘要: var url = document.location.toString(); var arrObj = url.split("/");//获取路由名字 var routeName = arrObj[7]; if (routeName == "detailbudget?itemID=24") { b 阅读全文
posted @ 2020-12-11 10:37 我和我的小生活 阅读(82) 评论(0) 推荐(0) 编辑
摘要: function getYearMsg() { var year = new Date().getFullYear(); return 'BMW China ' + year;} 阅读全文
posted @ 2020-12-11 10:36 我和我的小生活 阅读(152) 评论(0) 推荐(0) 编辑
摘要: function getUrlParam(paraName) { var url = document.location.toString(); //alert(url); var arrObj = url.split("?");//id=3 name=jack if (arrObj.length 阅读全文
posted @ 2020-12-11 10:32 我和我的小生活 阅读(283) 评论(0) 推荐(0) 编辑
摘要: function clearSeach() { $("#processid").val(""); $("#candidateid").val(""); $("#typeid").val(""); $("#entityid").val(""); $("#departmentid").val(""); 阅读全文
posted @ 2020-12-11 10:31 我和我的小生活 阅读(248) 评论(0) 推荐(0) 编辑
摘要: email格式: var re = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 阅读全文
posted @ 2020-12-11 10:30 我和我的小生活 阅读(525) 评论(0) 推荐(0) 编辑
摘要: timeFormat() { let data = new Date(); let year = data.getFullYear(); //获取年 let month = data.getMonth() + 1; //获取月 let day = data.getDate(); //获取日 retu 阅读全文
posted @ 2020-12-11 10:29 我和我的小生活 阅读(134) 评论(0) 推荐(0) 编辑
摘要: //时间格式转换function timeFormat(time) { var data = new Date(time); var year = data.getFullYear(); //获取年 var month = data.getMonth() + 1; //获取月 var day = d 阅读全文
posted @ 2020-12-11 10:28 我和我的小生活 阅读(107) 评论(0) 推荐(0) 编辑
摘要: body{ background-image:url(../src/assets/imgs/login.png); background-size:cover; background-repeat:no-repeat ; background-size:100% 100%; background-a 阅读全文
posted @ 2020-12-11 10:27 我和我的小生活 阅读(90) 评论(0) 推荐(0) 编辑