拖拽的实现 在html5还未普及之前,实现元素的拖拽还算是一件比较麻烦的事,大概思路就是监听鼠标移动相关事件,下面是伪代码 odiv.onmousedown = function(ev){ //记录起始位置 } document.onmousemove = function(ev){ //移动目标元 ...
分类:
其他好文 时间:
2020-12-17 12:44:20
阅读次数:
2
函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。
分类:
Web程序 时间:
2020-12-17 12:21:58
阅读次数:
3
在MybatisPlusConfig中新增bean(3.1.1以下) import com.baomidou.mybatisplus.core.injector.ISqlInjector; import com.baomidou.mybatisplus.extension.injector.Logi ...
分类:
其他好文 时间:
2020-12-17 12:18:23
阅读次数:
2
let arr1 = [1, 2, 3]; arr1.includes(2) true arr1.indexOf(2)>0 true util.oneOf = function (ele, targetArr) { if (targetArr.indexOf(ele) >= 0) { return ...
分类:
编程语言 时间:
2020-12-16 11:49:57
阅读次数:
6
//js部分 其中shijian all chaoshi为表中没有数据,单独添加的,表现样式如下 showTable:function(){ var _t=this; $.post(this.URL+'?showTable',{ act:'showTable',},function(v){ if(v ...
分类:
其他好文 时间:
2020-12-15 12:57:39
阅读次数:
11
对于普通吃瓜群众而言,只需要下载单个文件就够了,于是我总结了一个简单可行的方法! 目标网页:http://www.doc88.com/p-3651708817002.html 打开控制台,输入以下代码,回车 function downloadPages(from, to) { for (i = fr ...
分类:
其他好文 时间:
2020-12-15 12:56:23
阅读次数:
9
function fun_page(){ var url="${root}/book/page"; 获取一个地址 var data={"index":index,"size":size,"step":step}; 以键值对封装分页的参数:第几页,显示的行数,起始页 $.getJSON(url,dat ...
分类:
Web程序 时间:
2020-12-15 12:31:51
阅读次数:
7
//在生命周期中监听键盘keydown事件 const _this = this; document.onkeydown = function(e) { console.log(e) if (e.keyCode 13) { const isFromHaveOneInput = _this._isFr ...
分类:
其他好文 时间:
2020-12-15 12:00:55
阅读次数:
1
/** @JsonRpcMethod- delFile*/ public function delFile($data){ if(empty($data->filename)){ throw new Exception('参数错误',3104); }else{ $filename = $data-> ...
分类:
Web程序 时间:
2020-12-15 11:58:30
阅读次数:
3
解决JavaScript中构造函数浪费内存的问题! 把构造函数中的公共的方法放到构造函数的原型对象上! // 构造函数的问题! function Gouzaohanshu(name, age, gender) { this.name = name; this.age = age; this.gend ...
分类:
编程语言 时间:
2020-12-15 11:41:00
阅读次数:
5