父组件通过 props 传值给子组件,子组件通过 $emit 来通知父组件修改相应的props值,子组件可以通过watch监听父组件值变化。案例如下: 1.子组件 <template> <div class="com"> <input type="text" @input="inputChange" ...
分类:
其他好文 时间:
2019-11-14 23:31:05
阅读次数:
86
flask-script 用于实现类似于django中 python3 manage.py runserver ...类似的命令 安装 >: pip3 install flask-script 使用 manage.py from flask import Flask # 1.导入Manager fr ...
分类:
移动开发 时间:
2019-11-14 19:52:40
阅读次数:
98
There are certain differences in products, of which cosmetics are the most obvious. In addition to the differences in the nature of the product itself ...
分类:
其他好文 时间:
2019-11-14 12:37:03
阅读次数:
148
命名规则: module_name, package_name, ClassName, method_name, ExceptionName, function_name, GLOBAL_VAR_NAME, instance_var_name, function_parameter_name, lo ...
分类:
编程语言 时间:
2019-11-14 09:24:00
阅读次数:
67
form表单 能够获取用户输入(包括输入, 选择和上传文件) 将用户的输入内容全部发送给后端 参数 action 向何处提交 不写, 默认朝当前页面所在地址提交数据 全写路径 (https://www.google.com) 只写路径后缀 (/index/) method 如何提交 (提交方式) g ...
分类:
Web程序 时间:
2019-11-13 22:16:58
阅读次数:
91
auth模块 创建超级管理员 超级用户 用于登录django admin的后台管理 createsuperuser 校验用户名和密码是否正确 user_obj = auth.authenticate(username=username,password=password) # 返回的是数据对象 没有 ...
分类:
其他好文 时间:
2019-11-13 19:16:24
阅读次数:
60
ORM.py mysql_client.py ...
分类:
数据库 时间:
2019-11-13 16:25:38
阅读次数:
87
惠普 hpacucli工具使用命令组成hpacucli [parameter=value] 查看: 查看所有控制器状态 hpacucli ctrl all show 查看slot 0阵列信息详细状态 (可以查看物理磁盘和逻辑磁盘的对应关系)1)hpacucli ctrl slot=0 show co ...
分类:
其他好文 时间:
2019-11-13 13:26:35
阅读次数:
129
何时重构 如何重构 代码坏味道 Duplicated Code(重复代码) 重新组织函数 Extract Method(提炼函数) Long Method(过长函数) Inline Method(内联函数) Large Class(过大的类) Inline Temp(内联临时变量) Long Par ...
分类:
其他好文 时间:
2019-11-13 13:16:21
阅读次数:
95
使用POST方法传递数据 使用POST方法向服务器传递数据是更安全可靠的,像一些敏感信息如用户密码等需要使用POST传输数据。 以下同样是hello_get.py ,它也可以处理浏览器提交的POST表单数据: 以下为表单通过POST方法(method="post")向服务器脚本 hello_get. ...
分类:
编程语言 时间:
2019-11-12 10:53:37
阅读次数:
72