使用flask-script可以实现自定义命令来操作flask,如:可以通过命令来跑一个开发版本的服务器、设置数据库、定时任务等安装:pip install flask-script 命令的添加方式1:@manager.command:用来传递不需要传递参数的命令2:@manager.option: ...
分类:
数据库 时间:
2019-11-11 00:27:40
阅读次数:
139
Errormessage:JavaScriptruntimeerror:‘$‘isundefinedSolution:index.cshtml这个页面insertinto<scriptsrc="~/Scripts/jquery-1.10.2.min.js"type="text/javascript"></script>
分类:
其他好文 时间:
2019-11-10 21:12:12
阅读次数:
118
<script> <Menu defaultSelectedKeys={['/home']} //数组类型 让那个key被选中 defaultOpenKeys={['sub1']} mode="inline" //菜单下拉方式 vertival theme="dark" inlineCollapse ...
分类:
其他好文 时间:
2019-11-10 19:36:17
阅读次数:
91
显示名称 方式1: 方式2: 方式3: watch监视路由地址 ...
分类:
其他好文 时间:
2019-11-10 15:55:26
阅读次数:
82
小程序中的自定义属性要加上 data- 开头 获取的 时候是 e.currentTarget.自定义的属性名 <template> <view> <view :data-kk="value" @click="ck">ddd</view> </view> </template> <script> ex ...
分类:
移动开发 时间:
2019-11-10 15:49:19
阅读次数:
702
Shell 脚本 Shell 脚本(shell script),是一种为 shell 编写的脚本程序。 业界所说的 shell 通常都是指 shell 脚本,但读者朋友要知道,shell 和 shell script 是两个不同的概念。 由于习惯的原因,简洁起见,本文出现的 "shell编程" 都是 ...
分类:
系统相关 时间:
2019-11-10 15:48:31
阅读次数:
75
一、前言 this关键字是JavaScript中最复杂的机制之一。它是一个很特别的关键字,被自动定义在所有函数的作用域中。对于那些没有投入时间学习this机制的JavaScript开发者来说,this的指向一直是一件非常令人困惑的事。 二、了解this 学习this的第一步是明白this既不指向函数 ...
分类:
其他好文 时间:
2019-11-10 15:29:25
阅读次数:
70
Creating a fake access point (honeypot) Fake access points can be handy in many scenarios, one example is creating an open AP, this will attract a lot ...
分类:
Web程序 时间:
2019-11-10 13:55:53
阅读次数:
97
我的理解是Flask-WTF与html文件的关系就如同SQLAlchemy与数据库之间的关系。 通过python Form类,生成html代码,并在html模板文件中通过{{}}变量的方式引用这些生成的html代码 好处就是可以使用python类管理html的表单,而不需要自己去敲html代码 fl ...
分类:
其他好文 时间:
2019-11-10 13:34:00
阅读次数:
103
js <script type="text/javascript"> window.onload=function(){ //执行} </script> jQ <script type="text/javascript"> $(document).ready(function(){ //执行}); ...
分类:
Web程序 时间:
2019-11-10 11:52:04
阅读次数:
83