上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页
摘要: 发下这样没有实际用处,因为浏览器已经加载了js /** * 直接使用 */ var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { scripts[i].par 阅读全文
posted @ 2021-01-28 10:14 该显示昵称已被使用了 阅读(498) 评论(0) 推荐(0) 编辑
摘要: # 安装 pip install icecream # 使用 from icecream import ic # 可以配置函数 # import time # def unixTimestamp(): # return '%i |> ' % int(time.time()) # # ic.confi 阅读全文
posted @ 2021-01-27 13:14 该显示昵称已被使用了 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-01-24 11:28 该显示昵称已被使用了 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 参考: # 安装 pip install djangorestframework pip install django-redis # 调试 http #官网教程1,pip install httpie 可以用来调试http https://blog.csdn.net/ppppfly/article 阅读全文
posted @ 2021-01-23 20:49 该显示昵称已被使用了 阅读(125) 评论(0) 推荐(0) 编辑
摘要: FBV # 1 def add_publisher(request): error_msg = "" # 如果是POST请求,我就取到用户填写的数据 if request.method == "POST": new_name = request.POST.get("publisher_name", 阅读全文
posted @ 2021-01-23 20:03 该显示昵称已被使用了 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 模板 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bootstrap 实例 - 模态框(Modal)插件</title> <link rel="stylesheet" href="http://cdn.static.runo 阅读全文
posted @ 2021-01-22 21:42 该显示昵称已被使用了 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 弹框模块内的submit不用绑定函数 form里面的input可以直接提交,textarea加上name属性也可以提交了 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>用户列表</title> <link href="http 阅读全文
posted @ 2021-01-22 21:31 该显示昵称已被使用了 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 弹框模块内的确定按钮不用绑定函数 // 触发按钮 <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- 阅读全文
posted @ 2021-01-22 17:00 该显示昵称已被使用了 阅读(205) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask, request from flask.ext.restful import Api, Resource app = Flask(__name__) api = Api(app) USER_LIST = { '1': {'name':'Michael' 阅读全文
posted @ 2021-01-20 14:46 该显示昵称已被使用了 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 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',' 阅读全文
posted @ 2021-01-19 11:20 该显示昵称已被使用了 阅读(490) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页