上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: 目录与文件 目录与文件操作 # 创建文件 touch filename # 更新文件的访问时间戳 touch -a filename # 更新文件的修改时间戳 touch -m filename # 删除文件 rm filename # 复制文件 cp s_file dest_file # 移动文件 阅读全文
posted @ 2023-08-04 10:15 carol2014 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 最近要开发一个打印物品铭牌标签的页面,从DB里面调出信息,打印出带n个条形码(水平和竖直方向都有)的12*10cm的标签,这种应用以前接触的少,特意研究记录下。 要打印非标准纸张,首先需要在目标打印机上新建纸张类型,规格设置为12*10cm,步骤如下: 设置-设备-打印机和扫描仪-打印服务器属性-创 阅读全文
posted @ 2023-08-04 09:50 carol2014 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 先说问题:最近有个需求,上传一些文件到ftp服务器,代码在linux服务器上运行ok,档案正常上传到了ftp服务器。代码如下: $ftp_server = ""; $port = 21; $username = ""; $password = ""; $filename = "aa.csv"; $r 阅读全文
posted @ 2023-07-26 16:14 carol2014 阅读(221) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum 阅读全文
posted @ 2023-07-26 15:46 carol2014 阅读(26) 评论(0) 推荐(0) 编辑
摘要: <script> // Set // Set(集合)是一组唯一值的集合。每个值只能在 Set 中出现一次。Set 可以容纳任何数据类型的值。 // 创建 Set const letters = new Set(["b", "a", "c"]); console.log(typeof letters) 阅读全文
posted @ 2023-07-26 15:44 carol2014 阅读(11) 评论(0) 推荐(0) 编辑
摘要: <script> // Function对象的call和apply方法:可以用来调用所有者对象作为参数的方法,通过call和apply方法,能够使用属于另一个对象的方法。 //call() 和 apply() 之间的区别:call() 方法分别接受参数。apply() 方法接受数组形式的参数。如果要 阅读全文
posted @ 2023-07-26 15:42 carol2014 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 看了几篇文章,受益匪浅,写几个demo看下理解是否正确: 文章链接:Generator 函数的含义与用法 - 阮一峰的网络日志 (ruanyifeng.com) async 函数的含义和用法 - 阮一峰的网络日志 (ruanyifeng.com) 回调函数 <script> // 回调函数 func 阅读全文
posted @ 2023-06-21 14:38 carol2014 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 原文章:https://www.cnblogs.com/eryuan/p/17488732.html https://www.cnblogs.com/eryuan/p/17430377.html in/or到底能不能用索引 参数range_optimizer_max_mem_size 要控制范围优化 阅读全文
posted @ 2023-06-19 15:16 carol2014 阅读(50) 评论(0) 推荐(0) 编辑
摘要: localStorage生命周期是永久,除非用户主动清除localStorage信息,否则这些信息将永远存在。 sessionStorage生命周期为当前窗口或标签页,一旦窗口或标签页关闭,那么当前窗口或标签页通过sessionStorage存储的数据也就被清空了。 不同浏览器无法共享localSt 阅读全文
posted @ 2023-06-16 16:10 carol2014 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 最近遇到了一个问题:有一个数据看板的页面运行了n天后突然页面崩溃了,爆出了out of memory的错误。页面不复杂,几个图表定时更新数据,没明白为什么长时间运行后会out of memory。 在每次请求后使用 console.log(window.performance.memory); 打印 阅读全文
posted @ 2023-06-16 15:36 carol2014 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页