js
RS_ONLY
我要变强
展开
-
排序
这里用js写, 方便页面展示效果,每段代码直接放html即可执行 冒泡排序 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>测试用</title> <meta name="keywords" content=""> <meta name="description" content=""&原创 2020-12-23 10:44:28 · 93 阅读 · 0 评论 -
js下载文件
来自:https://www.cnblogs.com/habin/p/6703257.html window.downloadFile = function (sUrl) { //iOS devices do not support downloading. We have to inform user about this. if (/(iP)/g.test(navigato...转载 2018-12-19 15:24:05 · 466 阅读 · 0 评论 -
小技巧
1.有的地方打印不出东西来,可以写日志来搞。这几行代码会在入口文件同级新建一个test.log,直接用域名访问就行了 $file = fopen('test.log','a+'); $test = '你想看的数据'; $test = date("Y-m-d H:i:s"). ' ' .json_encode($test)."\r\n"; fwrite($file,$te...原创 2018-05-23 17:02:06 · 108 阅读 · 0 评论 -
js写的分页2
来源于http://www.jq22.com/mem815281 在这个基础上稍作 修改,增加了可选每页显示条数并跳到第一页 1.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>分页</tit转载 2019-01-15 17:07:12 · 124 阅读 · 0 评论 -
本周一周末
/**本日 本周 本月**/ function handleDate(status) { // 今天 let now = new Date(); let year = now.getFullYear(); let month = now.getMonth() + 1; let week = now.getDay() || 7; let day = ...转载 2019-02-28 17:16:51 · 121 阅读 · 0 评论