1. 阻止事件冒泡 兼容w3c浏览器 function cBubble(e){ if(e.stopPropagation){ e.stopPropagation();//ie9+ }else{//ie678 e.cancelBubble = true; } } 2.阻止浏览器默认行为 functio ...
分类:
其他好文 时间:
2021-03-30 12:44:55
阅读次数:
0
在开发过程中,经常会忘了给创建时间、更新时间等字段赋值,这里介绍两种自动更新时间的方法: 方法一:beforeSave public function beforeSave($insert) { if (parent::beforeSave($insert)) { if ($insert) { if ...
分类:
其他好文 时间:
2021-03-29 12:46:44
阅读次数:
0
这样一个简单的函数: function quiz() { vim -S ~/.vim/sessions/$1.vim } 就可以恢复, 比如awk, 我在学习awk, 主要会涉及到两个文件, 一个是awk脚本, 一个是输入的文本. 通过vim的mksessions和vim -S session名, ...
分类:
系统相关 时间:
2021-03-29 12:29:15
阅读次数:
0
常用函数式接口 JDK提供了大量常用的函数式接口以丰富Lambda的典型使用场景,它们主要在java.util.function包中被提供。,下面是最简单的几个接口及使用示例。 Supplier接口 java.util.function.Supplier<T>接口,它意味着"供给" , 对应的Lam ...
分类:
编程语言 时间:
2021-03-29 12:10:59
阅读次数:
0
通过remix部署合约出现了一些问题。 编码如下: pragma solidity^0.4.0;contract FaucetTest{ function withdraw(uint withdraw_amount) public { require(withdraw_amount <= 10000 ...
分类:
移动开发 时间:
2021-03-29 11:57:33
阅读次数:
0
function Checkexeisrunning(ename:string):Boolean; var hwd:hwnd; scr:array [0..254] of Char; begin Result:=False; hwd:=GetWindow(Application.Handle,GW_ ...
分类:
其他好文 时间:
2021-03-26 15:28:08
阅读次数:
0
Function.prototype.mycall = function () { const [first, ...rest] = arguments; const ctx = first || window; ctx.func = this; const ret = ctx.func(...re ...
分类:
移动开发 时间:
2021-03-26 15:24:30
阅读次数:
0
FUNCTION fmname. DATA:g_char(30) TYPE c. g_char = ''. g_char = abs( i_amount ). CONDENSE g_char. TYPES: cur6 TYPE p DECIMALS 6, cur2 TYPE p DECIMALS 2 ...
分类:
其他好文 时间:
2021-03-26 15:22:57
阅读次数:
0
// 文件点击下载 function downloadFile() { fetch(tossactApi + params.row.originVideo).then(res => res.blob()).then(blob => { const a = document.createElement ...
分类:
其他好文 时间:
2021-03-26 15:14:30
阅读次数:
0
原型对象 原型的引入 function Person(name, age, gender) { this.name = name; this.age = age; this.gender = gender; //向对象中添加一个方法 this.sayName = function () { cons ...
分类:
其他好文 时间:
2021-03-18 14:22:02
阅读次数:
0