摘要:
发下这样没有实际用处,因为浏览器已经加载了js /** * 直接使用 */ var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { scripts[i].par 阅读全文
摘要:
# 安装 pip install icecream # 使用 from icecream import ic # 可以配置函数 # import time # def unixTimestamp(): # return '%i |> ' % int(time.time()) # # ic.confi 阅读全文
摘要:
import os def remove_filename(path_dir, start, end): files = [f for f in os.listdir(path_dir) if f.startswith(start) and f.endswith(end)] for file_nam 阅读全文
摘要:
参考: # 安装 pip install djangorestframework pip install django-redis # 调试 http #官网教程1,pip install httpie 可以用来调试http https://blog.csdn.net/ppppfly/article 阅读全文
摘要:
FBV # 1 def add_publisher(request): error_msg = "" # 如果是POST请求,我就取到用户填写的数据 if request.method == "POST": new_name = request.POST.get("publisher_name", 阅读全文
摘要:
模板 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bootstrap 实例 - 模态框(Modal)插件</title> <link rel="stylesheet" href="http://cdn.static.runo 阅读全文
摘要:
弹框模块内的submit不用绑定函数 form里面的input可以直接提交,textarea加上name属性也可以提交了 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>用户列表</title> <link href="http 阅读全文
摘要:
弹框模块内的确定按钮不用绑定函数 // 触发按钮 <div class="am-btn-group am-btn-group-xs"> <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am- 阅读全文
摘要:
from flask import Flask, request from flask.ext.restful import Api, Resource app = Flask(__name__) api = Api(app) USER_LIST = { '1': {'name':'Michael' 阅读全文
摘要:
def is_hex(word): word= word.lower() for i in range(len(word)): if not( word[i].startswith('0x') or word[i].isdigit() or word[i] in ['a','b','c','d',' 阅读全文