上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 338 下一页
摘要: Vue props Vue props 传函数,传对象 Vue props 传函数(传方法) 在Vue中,可以通过 props 向子组件传递函数。这允许父组件与子组件通信,子组件可以在需要时调用传递的函数。 以下是一个简单的例子: 父组件: <template> <div> <child-compo 阅读全文
posted @ 2025-04-05 19:03 emanlee 阅读(854) 评论(0) 推荐(0)
摘要: Bracket Pair Color DLW Bracket Pair Colorization Toggler 开发环境 Visual Studio Code官网:https://code.visualstudio.com 1 开发插件 中文插件:Chinese (Simplified) (简体中 阅读全文
posted @ 2025-04-05 17:52 emanlee 阅读(4868) 评论(0) 推荐(0)
摘要: Visual Studio Code 远程连接 SSH 远程服务器 VS Code 远程连接 SSH 服务器 本篇将以 Windows 系统下的 VS Code 作为 SSH 客服端,连接远程的 Ubuntu 系统。前提条件是 Ubuntu 远程服务器已安装了 SSH 服务组件。 一、安装 Remo 阅读全文
posted @ 2025-04-03 18:50 emanlee 阅读(12465) 评论(0) 推荐(0)
摘要: this.$emit()是 Vue.js 中一个很有用的方法,可以帮助子组件向父组件传递事件 在Vue中,this.$emit()方法用于触发自定义事件。它是Vue实例的一个方法,可以在组件内部使用。 使用 this.$emit() 方法,可以向父组件发送自定义事件,并传递数据给父组件。父组件可以通 阅读全文
posted @ 2025-03-30 11:24 emanlee 阅读(695) 评论(0) 推荐(0)
摘要: javascript 数组 javascript 数组 在JavaScript中,数组是一种特殊的对象,用于在单个变量中存储多个值。以下是一些常见的数组操作和方法: 创建数组: let fruits = ['apple', 'banana', 'mango']; 访问数组元素: let firstF 阅读全文
posted @ 2025-03-28 19:55 emanlee 阅读(460) 评论(0) 推荐(0)
摘要: 默认插槽 模板Vue中,只有一个slot 模板Vue中,slot提供默认值 具名插槽 当有多个slot时,每个slot有名字的插槽(name) 只有template才能用 v-slot 【这个是新设计的技术 Vue2.6以后用的】 作用域插槽 反向传数据 App.vue中,必须用 template 阅读全文
posted @ 2025-03-28 09:58 emanlee 阅读(495) 评论(0) 推荐(0)
摘要: django 条件过滤 queryset.filter用法和 django_filters.FilterSet用法 1 queryset.filter用法 __exact 精确等于 like 'aaa' __iexact 精确等于 忽略大小写 ilike 'aaa' __contains 包含 li 阅读全文
posted @ 2025-03-27 08:24 emanlee 阅读(159) 评论(0) 推荐(0)
摘要: REF https://blog.csdn.net/weixin_30498807/article/details/96845973 https://blog.csdn.net/aaronthon/article/details/81714496 用来管理和维护我们应用程序的models 转自:ht 阅读全文
posted @ 2025-03-26 21:05 emanlee 阅读(87) 评论(0) 推荐(0)
摘要: 转自并修改: https://blog.csdn.net/bbwangj/article/details/89159727 https://django-guardian.readthedocs.io/en/latest/userguide/assign/ 安装 pip install django 阅读全文
posted @ 2025-03-26 18:17 emanlee 阅读(90) 评论(0) 推荐(0)
摘要: _meta.app_label app_label app_label 这个选项只在一种情况下使用,就是你的模型类不在默认的应用程序包下的 models.py 文件中,这时候你需要指定你这个模型类是那个应用程序的。比如你在其他地方写了一个模型类,而这个模型类是属于 myapp 的,那么你这是需要指定 阅读全文
posted @ 2025-03-25 12:31 emanlee 阅读(27) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 338 下一页