1.方法一:用定时器定时,没跑完定时器,点击按钮无效 <script> var isClick = true; $("button").on("click",function(){ if(isClick) { isClick = false; //事件 console.log('我被点击了'); / ...
分类:
Web程序 时间:
2021-03-02 11:55:14
阅读次数:
0
var str = 'node.js'; var fs = require('fs'); fs.writeFile('./a.txt',str,function(err){ if(err==null){ console.log('恭喜你,写入成功') }else{ console.log(err); ...
分类:
Web程序 时间:
2021-03-02 11:49:45
阅读次数:
0
[Git]基本操作 Git的结构 workspace:工作区 staging area:暂存区/缓存区 local repository:版本库或本地仓库 remote repository:远程仓库 基本命令 参考:https://www.cnblogs.com/convict/p/1079532 ...
分类:
其他好文 时间:
2021-03-02 11:45:58
阅读次数:
0
四大核心功能:filter, nat, mangle, raw 1.【清楚默认规则】 iptables -P INPUT ACCEPT iptables -F # 清空所有规则 iptables -X # 清空所有自定义规则 iptables -Z # 计算器0 2.【配置规则】 [vim /etc ...
分类:
其他好文 时间:
2021-03-01 14:16:49
阅读次数:
0
1.安装Redis 因为使用了Redis储存登陆用户信息,所以需要先安装Redis 下载链接 : https://github.com/tporadowski/redis/releases 下载后启动文件夹中的redis-server.exe即可 2.启动前端项目 教程: https://www.c ...
分类:
其他好文 时间:
2021-03-01 14:16:03
阅读次数:
0
一个页面中多个window.onload = function(){}冲突问题解决思路 一个页面中多个window.onload = function(){}冲突问题解决思路 参考文章: (1)一个页面中多个window.onload = function(){}冲突问题解决思路 (2)https: ...
常规公式理想情况可行,根据运动学可以直接写出来 \[ y(t)= \frac{1}{2}gt^2+v_0t+y_0 \] 但在游戏中是不可行的,因为情况很复杂,粒子可能会碰撞、着地等等,函数变成非连续的,加速度随时间改变,函数很复杂受玩家影响 因此我们需要转用数值方法求解: 时间上连续的问题转化为近 ...
分类:
其他好文 时间:
2021-03-01 13:48:20
阅读次数:
0
var le = [{name:"js"}, {name:"css"}, {name:"python"} ]; var index = le.findIndex(function(item){ return item.name== "css"; }); console.log(index);1 ...
分类:
编程语言 时间:
2021-03-01 13:46:39
阅读次数:
0
1. 域名代理实例: #user nobody; user root; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; p ...
分类:
其他好文 时间:
2021-03-01 13:32:37
阅读次数:
0
root@M6708-T:/var/log# cat /proc/meminfoMemTotal: 1022988 kBMemFree: 622100 kBMemAvailable: 675396 kBBuffers: 81128 kBCached: 118656 kBSwapCached: 0 k ...
分类:
其他好文 时间:
2021-03-01 13:27:19
阅读次数:
0