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

浙公网安备 33010602011771号