摘要:
<template> <section> <h1>hello world~</h1> </section> </template> <script> export default { data() { return { timer: '', value: 0 }; }, methods: { get 阅读全文
摘要:
redis 版本 pip install redis==2.10.6 settings.py CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379 阅读全文
摘要:
import pymongo mongo_client=pymongo.MongoClient(host='localhost',port=27017) db=mongo_client.myip table=db.myabac # 存入 table_echart.insert({}) aaa=tab 阅读全文
摘要:
一、在dev分支上运行以下命令 1. git add . // 暂存所有更改 2. git commit -m "更改的备注信息" // 将修改 提交到本地仓库,双引号内是提交的备注信息 3. git pull origin dev // 拉取远程dev分支代码 4. git push origin 阅读全文
摘要:
reids 版本 redis 2.10.6 import redis from idlelib.IOBinding import encoding from pip.utils import Inf pool=redis.ConnectionPool(host='192.168.1.106',por 阅读全文
摘要:
git reset --hard 报错信息 error: unable to create symlink ssl: Permission denied fatal: Could not reset index file to revision 'HEAD' 阅读全文
摘要:
if request.META.get('HTTP_X_FORWARDED_FOR'): ip = request.META.get("HTTP_X_FORWARDED_FOR") else: ip = request.META.get("REMOTE_ADDR") print("ip : ", i 阅读全文
摘要:
def my_decorator(func): def wrapper(request,*args,**kwargs): print('装饰器被调用了') return func(request,*args,**kwargs) # 调 post 方法 return wrapper 调用 阅读全文
摘要:
html <div class="button"><van-button type="info" v-show="show" @click="getCode">获取验证码</van-button><van-button type="info" v-show="!show" class="count" 阅读全文
摘要:
from django.utils.deprecation import MiddlewareMixin class Myddleware(MiddlewareMixin): def process_request(self, request): pass def process_view(self 阅读全文