摘要: pycharm 创建Django项目 创建应用 (app) python3 manage.py startapp polls 注册APP 编写URL和视图函数对应关系 【urls.py】 数据库操作 安装第三方模块 pip install mysqlclient 连接数据库 django操作表 fr 阅读全文
posted @ 2024-03-07 15:46 窦戈 阅读(25) 评论(0) 推荐(0)
摘要: 下载社区版 https://dev.mysql.com/downloads/mysql/ 安装后 运行 mysql -u root -p 阅读全文
posted @ 2024-03-07 14:55 窦戈 阅读(13) 评论(0) 推荐(0)
摘要: 配置文件 config/swoole.php <?php //默认\think\swoole\websocket\Handler::class, use think\swoole\websocket\socketio\Handler; return [ 'http' => [ 'enable' => 阅读全文
posted @ 2024-03-05 14:52 窦戈 阅读(1076) 评论(0) 推荐(0)
摘要: 全局引入 要在 UniApp 中创建一个全局方法,以便在所有模板中直接使用,可以使用 Vue 的 mixin 混入功能。 下面是创建全局方法的步骤: 在项目的根目录下,创建一个名为 mixin.js 的文件(或者你可以选择其他命名)。 在 mixin.js 文件中,定义全局方法。例如,我们创建一个名 阅读全文
posted @ 2023-12-05 12:24 窦戈 阅读(2254) 评论(0) 推荐(0)
摘要: WPF Prism事件聚合器-订阅/发布事件 https://www.cnblogs.com/douyuanjun/p/17788957.html 结合JS理解更容易理解:https://www.cnblogs.com/douyuanjun/p/17465402.html //传参给上一页 conf 阅读全文
posted @ 2023-11-21 14:48 窦戈 阅读(1905) 评论(0) 推荐(0)
摘要: 父组件 <jdy-goods-attr v-model:goods_sn="goods.goods_sn"></jdy-goods-attr> //尤总 在vue3的时候给我们提供了一个新的思路:v-model来实现父传子,并且子也可以修改父组件传递过来的数据。 子组件 const props = 阅读全文
posted @ 2023-11-15 16:37 窦戈 阅读(771) 评论(0) 推荐(0)
摘要: <jdy-goods-attr :goods_sn="goods.goods_sn" @goods_sn="(msg) => goods.goods_sn = msg" v-model:goods_num="goods.goods_num" ></jdy-goods-attr> const emit 阅读全文
posted @ 2023-11-15 16:15 窦戈 阅读(842) 评论(0) 推荐(0)
摘要: 使用构造函数传递值: public class ComplexInfoModel { public string Key { get; set; } public string Text { get; set; } public ComplexInfoModel(string key, string 阅读全文
posted @ 2023-10-31 08:23 窦戈 阅读(176) 评论(0) 推荐(0)
摘要: //构造函数 public MainWindowViewModel() { EditCommand = new DelegateCommand(_editCommand); } //命令声明一 public DelegateCommand EditCommand { get; set; } //构造 阅读全文
posted @ 2023-10-30 13:04 窦戈 阅读(345) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; public class Student{ public string Name { get; set; } } class MyClass { //用于存储学生对象的集合 private List<St 阅读全文
posted @ 2023-10-28 15:58 窦戈 阅读(22) 评论(0) 推荐(0)