上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页
摘要: 拷贝element-ui例子时,head中引用时可能需要注意下 1. table的例子 <html lang="en"> <head> <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> <script src 阅读全文
posted @ 2023-03-09 17:41 坚强的小蚂蚁 阅读(228) 评论(0) 推荐(0)
摘要: 一. 改变容器存储位置 默认存储位置是/var/lib/docker 1.停止docker systemctl stop docker 有时候会报错Warning: Stopping docker.service, but it can still be activated by: docker.s 阅读全文
posted @ 2023-03-08 10:40 坚强的小蚂蚁 阅读(408) 评论(0) 推荐(0)
摘要: 1. 给文件夹创建软链接 首先创建一个真实的文件夹 cd / mkdir test1 然后在data目录下创建软链接 cd /data ln -s /test1 test-soft 2. 在软链接目录下新建一个2G的文件 dd if=/dev/urandom of=3.txt bs=1M count 阅读全文
posted @ 2023-03-07 14:10 坚强的小蚂蚁 阅读(102) 评论(0) 推荐(0)
摘要: 未测试 示例3:server{ listen 80; server_name www.aming.com; return 200 "hello";}说明:如果要想返回字符串,必须要加上状态码,否则会报错。还可以支持json数据 示例4:location ^~ /aming { default_typ 阅读全文
posted @ 2023-03-06 10:06 坚强的小蚂蚁 阅读(888) 评论(0) 推荐(0)
摘要: 在db_tools目录下新建2个脚本文件import_category_data.py,import_goods_data.py 来生成数据 2. 独立使用model导入数据,上面的脚本文件开头如下写,以 import sys import os #把当前路径加入到系统路径中,方便import 上面 阅读全文
posted @ 2023-02-22 17:03 坚强的小蚂蚁 阅读(53) 评论(0) 推荐(0)
摘要: on_delete = models.CASCADE #删除关联数据,与之关联也被删除 on_delete = models.DO_NOTHING #删除关联数据,什么也不做 on_delete = models.PROTECT #删除关联数据,引发错误ProtectedError on_delet 阅读全文
posted @ 2023-02-21 11:18 坚强的小蚂蚁 阅读(148) 评论(0) 推荐(0)
摘要: 一. 使用Git bash操作 1. 准备条件与初始化 新建一个文件夹dm-config cd dm-config #初始化 git init #全局配置添加邮箱和用户名 git config --global user.name "jack" git config --global user.em 阅读全文
posted @ 2023-02-15 17:48 坚强的小蚂蚁 阅读(826) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/SunshineKimi/p/14042914.html Django 原生实现外键 class AppleModel(models.Model): id=models.AutoField(primary_key=True) app_name=mode 阅读全文
posted @ 2023-02-10 14:24 坚强的小蚂蚁 阅读(182) 评论(0) 推荐(0)
摘要: 在python官网https://www.python.org/下载python3.10的tgz的源码包。安装编译环境apt-get updateapt install wget build-essential checkinstall apt install libreadline-gplv2-d 阅读全文
posted @ 2023-02-08 17:56 坚强的小蚂蚁 阅读(1743) 评论(0) 推荐(0)
摘要: 1. div内的ID定位及滚动js = 'document.getElementById("zhizi_mask").scrollTop=10000'driver.execute_script(js) 2. div内的classname定位及滚动,注意getElements返回的是个列表所以[0]j 阅读全文
posted @ 2023-02-06 13:33 坚强的小蚂蚁 阅读(1063) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页