2019年4月17日

到具体某一天的倒计时

摘要: <p>距离2020年还有</p> <p><span></span></p> var oSpan = document.getElementsByTagName('span')[0]; function tow(n) { return n >= 0 && n < 10 ? '0' + n : '' + 阅读全文

posted @ 2019-04-17 15:49 每天暴走三公里 阅读(114) 评论(0) 推荐(0) 编辑

2018年11月23日

angular2 2种方式----获取子组件的类属性和类方法

摘要: 1) 方法 父html文件<button (click)="onclickchildfun()">通过@ViewChild调用子组件方法</button> 父tsimport { Component, OnInit, ViewChild } from '@angular/core';import { 阅读全文

posted @ 2018-11-23 10:34 每天暴走三公里 阅读(618) 评论(0) 推荐(0) 编辑

2018年11月20日

页面刷新

摘要: 1. history.go(0) 2. location.reload() 3. location=location 4. location.assign(location) 5. document.execCommand('Refresh') 6. window.navigate(location 阅读全文

posted @ 2018-11-20 10:20 每天暴走三公里 阅读(168) 评论(0) 推荐(0) 编辑

angular父子组件传值

摘要: angular 组件传值 **** 子传父。。。。@Output*****子组件 ts文件import {Component, Output, EventEmitter,OnInit} from '@angular/core';@Component({ selector: 'child-Compon 阅读全文

posted @ 2018-11-20 10:13 每天暴走三公里 阅读(863) 评论(0) 推荐(0) 编辑

div垂直居中,文字垂直居中!!!

摘要: <div class="warpdiv" >viuergitryrwg <div class="childdiv"></div> </div> <div class="box1">12121 <span>文字垂直居中</span> </div> .warpdiv{ width: 80%; heigh 阅读全文

posted @ 2018-11-20 10:07 每天暴走三公里 阅读(152) 评论(0) 推荐(0) 编辑

2018年11月19日

angular 自定义select选项,tab切换!!!

摘要: html**************** <!-- select自定义选项 --> <ul class="cheadMy"> <li [class.cked_color]="mychidex==idx" *ngFor="let item of checkdList,let idx=index" (c 阅读全文

posted @ 2018-11-19 15:27 每天暴走三公里 阅读(242) 评论(0) 推荐(0) 编辑

2018年10月8日

自定义滚动条样式

摘要: /*滚动条全局样式 如只是莫一指定的滚动条 可以带上它的id class等*/ ::-webkit-scrollbar { width: 10px;//表示垂直滚动条的宽度 height: 10px;//表示水平滚动条的高度 } /*正常情况下滑块的样式*/ .sys_module_conten:: 阅读全文

posted @ 2018-10-08 10:25 每天暴走三公里 阅读(92) 评论(0) 推荐(0) 编辑

2018年7月13日

验证小数点后两位,且是正数

摘要: *******只能输入小数点后两位 且是正整数 function amountInput(parent,child,maxLength) { var CashingAmountLast = ""; if(maxLength == undefined) { maxLength = 10; } $mon 阅读全文

posted @ 2018-07-13 15:56 每天暴走三公里 阅读(155) 评论(0) 推荐(0) 编辑

2018年6月12日

上一条 下一条数据

摘要: html部份》》》》》》》 <!--数据显示 上下条--> <p id="showData"></p> <button id="onenex" onclick="updata(1)">上</button> <button id="twoup" onclick="updata(0)">下</butto 阅读全文

posted @ 2018-06-12 19:00 每天暴走三公里 阅读(141) 评论(0) 推荐(0) 编辑

2018年6月8日

动态加载表格数据并获取所点击当前行的id(自定义)

摘要: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> tr>td{ width: 400px; } .spelSpan{ visibility: hidden; } </style 阅读全文

posted @ 2018-06-08 19:43 每天暴走三公里 阅读(298) 评论(0) 推荐(0) 编辑

导航