05 2020 档案

摘要:代码伺候: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> .outer{ display: flex; } .test{ flex: 1; min-width: 0; } .inner{ 阅读全文
posted @ 2020-05-15 20:49 本人小白 阅读(1009) 评论(0) 推荐(0)
摘要:stylus类似于less,sass,帮助我们在css中使用变量,mixin,快速编写代码 使用方法: npm install stylus --save npm install stylus-loader --save 阅读全文
posted @ 2020-05-14 21:30 本人小白 阅读(219) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>非父子组件传值(BUS/总线/发布订阅模式/观察者模式)</title> <script src="js/vue.js" type="text/javascript" char 阅读全文
posted @ 2020-05-11 18:15 本人小白 阅读(333) 评论(0) 推荐(0)
摘要:三者的区别: 存储大小: Cookie4k, Storage5M 有效期: Cookie拥有有效期,localStorage永久存储,SessionStorage是一种会话技术,浏览器关闭即清除。 Cookie会发送到服务器端,存储在内存中,localStorage只存储在浏览器端,sessionS 阅读全文
posted @ 2020-05-09 16:04 本人小白 阅读(246) 评论(0) 推荐(0)
摘要:xadmin中的用法: class NewCourseAdmin: list_display = ['name', 'detail', 'degree', 'learn_times', 'students'] list_editable = ['degree', 'desc'] def querys 阅读全文
posted @ 2020-05-01 23:34 本人小白 阅读(1445) 评论(0) 推荐(0)
摘要:class NewCourseAdmin: list_display = ['name', 'detail', 'degree', 'learn_times', 'students'] list_editable = ['degree', 'desc'] def get_form_layout(se 阅读全文
posted @ 2020-05-01 21:22 本人小白 阅读(633) 评论(0) 推荐(0)
摘要:https://xadmin.readthedocs.io/en/latest/index.html 阅读全文
posted @ 2020-05-01 19:52 本人小白 阅读(2673) 评论(0) 推荐(0)
摘要:class CustomAuth(ModelBackend): def authenticate(self, request, username=None, password=None, **kwargs): try: user = UserProfile.objects.get(Q(usernam 阅读全文
posted @ 2020-05-01 14:37 本人小白 阅读(185) 评论(0) 推荐(0)