12 2020 档案
摘要:html: <form [formGroup]="loginFormGroup"> <div class="div_f"> <div class="div_c_l"><span> 邮箱地址</span> </div> <div class="div_c_r"><ion-input type="tex
阅读全文
摘要:1.点击到① 2. 写提交的理由(可以随便写) 3.对勾√点击提交 4.拉取代码到本地
阅读全文
摘要:online:给img定义一个父标签,让这个父标签里面的内容居中,那么img自然就居中了。 methods:父盒子加上属性:text-align:center
阅读全文
摘要:在终端窗口运行命令: git config user.name “设置你的名字”git config user.email "这里面设置你的邮箱地址" 然后再上传代码,重新运行项目。
阅读全文
摘要:function downloadDocument () { var href="/xxxxxxxx/xxxxxxxx" window.open(href,'_self'); //在当前页面打开 }
阅读全文
摘要:国家公祭日的时候,各大网站颜色都变成了灰色,这个效果身为身为程序员的我必须得了解了解~ 它与一个属性有关 CSS3 filter(滤镜) 属性 修改所有图片的颜色为黑白 (100% 灰度): img { -webkit-filter: grayscale(100%); /* Chrome, Safa
阅读全文
摘要:<ion-select *ngSwitchCase="'MC'" interface="action-sheet" multiple="true" cancelText="{{'Cancel'| translate}}" okText="{{'Ok'| translate}}" [class.inv
阅读全文
摘要:首先运行创建组件的命令ng g component components/news 这样就会在app下生成一个components文件夹,在components下面生成了news组件新建好以后它会自动在app.module.ts中,引入并声明这个组件import {NewsComponent} fr
阅读全文
摘要:angular中的响应式表单 FormGroup新建,获取Form Group的值 在HTML中: <form [formGroup]="loginFormGroup"> //将这个FormGroup和FormGroup属性绑定起来 <div class="div_f"> <div class="d
阅读全文
摘要:1.就是{{'Save'|translate}} 就是在要翻译的后面直接加上translate2.对于弹出框...来说的 this.translateService.get().subscribe(....① this.translateService.get(['This_Field_Is_Not
阅读全文
摘要:get maxlengthMessage() { this.translateService.get(['The_Field_Does_Not_Exceed','Characters']).subscribe(res=>{ maxlengthMessageStr= res['The_Field_Do
阅读全文
摘要://邮箱验证,网上找到的正则var RegEmail = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
阅读全文
摘要:$('dl').hide(); $(function () { $("li.mainmenu").mouseover(function () { $(this).children("dl").show(); }) }) $(function () { $("li.mainmenu").mouseou
阅读全文
摘要://Check to see if the window is top if not then display button $(window).scroll(function () { if ($(this).scrollTop() > 300) { $('.scrollToTop').fadeI
阅读全文
摘要:goToDetailView(Id,StartDate,EndDate) { let date = new Date(); let startdate=new Date(StartDate); let enddate=new Date(EndDate); if(date>=startdate &&
阅读全文
摘要:var url = document.location.toString(); var arrObj = url.split("/");//获取路由名字 var routeName = arrObj[7]; if (routeName == "detailbudget?itemID=24") { b
阅读全文
摘要:function getYearMsg() { var year = new Date().getFullYear(); return 'BMW China ' + year;}
阅读全文
摘要:function getUrlParam(paraName) { var url = document.location.toString(); //alert(url); var arrObj = url.split("?");//id=3 name=jack if (arrObj.length
阅读全文
摘要:function clearSeach() { $("#processid").val(""); $("#candidateid").val(""); $("#typeid").val(""); $("#entityid").val(""); $("#departmentid").val("");
阅读全文
摘要:email格式: var re = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
阅读全文
摘要:timeFormat() { let data = new Date(); let year = data.getFullYear(); //获取年 let month = data.getMonth() + 1; //获取月 let day = data.getDate(); //获取日 retu
阅读全文
摘要://时间格式转换function timeFormat(time) { var data = new Date(time); var year = data.getFullYear(); //获取年 var month = data.getMonth() + 1; //获取月 var day = d
阅读全文
摘要:body{ background-image:url(../src/assets/imgs/login.png); background-size:cover; background-repeat:no-repeat ; background-size:100% 100%; background-a
阅读全文
摘要:function textIsNullOrEmpty(textValue) { return (textValue == undefined || textValue == null || $.trim(textValue) == "");}
阅读全文
摘要:function arrayIsNull(arrayValue) { return (arrayValue == undefined || arrayValue == null || arrayValue.length == 0);}
阅读全文
摘要:display:none visibility:hidden同:都是将网页上的某个元素隐藏起来,但是display:none会连原先元素的位置一并隐藏 visibility:hidden则只是让这个元素变得透明,它所占的位置还是在页面上
阅读全文
摘要:$.trim() 函数用于去除字符串两端的空白字符。例如: $.trim(firstName)
阅读全文
摘要:<input type="checkbox" name="checkboxMain" onclick="CheckAll(this);" />function CheckAll(obj) { //获取checked属性 if ($(obj).prop("checked")) { //设置checke
阅读全文
摘要:toFixed()方法可把number四舍五入为指定小数位数的数字 例子: var n=parseFloat(input).toFixed(2);
阅读全文
摘要:if(xx==undefined||xx==null||xx==''){ }
阅读全文
摘要:var d = new Date();var n = d.getTime();
阅读全文
摘要:eval() 函数可计算某个字符串,并执行其中的的 JavaScript 代码。string 必需。要计算的字符串,其中含有要计算的 JavaScript 表达式或要执行的语句。 例子: function searchBudgetTable(){var filterString = "item =>
阅读全文
摘要:function myFunction() {var str = "word";var n = str.includes("o");document.getElementById("demo").innerHTML = n;}输出结果 true if (entityid != "") { filte
阅读全文
摘要:移除所有 <p> 的 "intro" 类: $("button").click(function(){ $("p:first").removeClass("intro"); }); removeClass() 方法从被选元素移除一个或多个类。 注释:如果没有规定参数,则该方法将从被选元素中删除所有类
阅读全文
摘要:使用 push() 方法可以给数组末尾添加一个或多个数组项。 var arr = []; arr.push('a','b'); console.log(arr); // ['a','b']
阅读全文
摘要:$('#transparency').hover(function () { $('.transparency').fadeIn('slow'); }, function () { $('.transparency').fadeOut('slow'); });
阅读全文
摘要:<!DOCTYPE html><html><head></head><body><script>var nubList = [{expressId: "00001", //快递单号IDexpressNum: "数据1"},{expressId: "00002", //快递单号IDexpressNum
阅读全文
摘要:<input type="number" style="width:310px;height:35px;" onkeyup="clearNoNum(this)" id="adjustedAmountInput" step="500" placeholder="+500/-500"/> functio
阅读全文
摘要:swal({title: '',html:'<p style="font-weight:bold;">Please input adjusted amount</p>' +'<input type="text" style="width:310px;height:35px;" id="adjuste
阅读全文
摘要:description: ' We reflect on our actions, respect each other, ' + ' offer clear feedback and celebrate success. '
阅读全文
摘要:布局:<div class="outerContainer"> <div class="innerContent"></div></div> 样式:.outerContainer{ width:100%; height:100%; background:#eee; display:flex; jus
阅读全文
摘要:updateSurveyList() { if (localStorage.getItem('isGobackSurveyList') 'true') { localStorage.setItem('isGobackSurveyList', 'false'); this.surveyService.
阅读全文
摘要:function searchTable() { var process = $("#processid").val().toUpperCase().trim(); var candidate = $("#candidateid").val().toUpperCase().trim(); var t
阅读全文

浙公网安备 33010602011771号