vue 生命周期的钩子函数

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scal...

vue 过滤器基本使用

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scal...

vue v-model 基本使用

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scal...

vue 基本使用

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scal...

es6 基本语法

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scal...

django生产环境部署

安装python3.6.7 1、安装python 访问https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tar.xz 下载python源码包 解压 tar xf Python-3.6.7.tar.xz cd Python-3.6.7 ./configure --prefix=/usr/local/pytho...

KVM删除命令,管理快照命令

自动化清理KVM #!/bin/bash Echo() { case $1 in success) flag="\033[1;32m" ;; failure) flag="\033[1;31m" ;; warning) flag="\033[1;33m" ;; msg) fla...

Django之orm模型2

from django.shortcuts import render,HttpResponse,redirect,reverse from app02.models import * # Create your views here. def index(request): """ :param request: :return: """ # da...

Django之orm模型

# 默认使用sqlite # DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), # } # } # 修改使用mysql #...

Django之tpl模板

from django.shortcuts import render # Create your views here. def index(request): s = 'hello' l = ['Python', 'PHP', 'Shell', 'Go'] dic = {'name': 'ropon', 'age':18} import time ...