
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 · 159 阅读 · 0 评论 -
js下载文件
来自:https://www.cnblogs.com/habin/p/6703257.htmlwindow.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 · 501 阅读 · 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 · 144 阅读 · 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 · 164 阅读 · 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 · 161 阅读 · 0 评论