上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: # input :text,password,select... # text文本类型的双向数据绑定 -使用 :value='变量' 单向数据绑定,页面变化,变量不会跟着变 》一般不用 -使用 v-model='变量' 双向数据绑定,页面变化,变量变化都会相互影响 使用 <!DOCTYPE html 阅读全文
posted @ 2022-10-19 14:26 Sherwin_szw 阅读(24) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="vue.js"></script> </head> <body> <div id="app"> <h2>v 阅读全文
posted @ 2022-10-19 11:01 Sherwin_szw 阅读(74) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="vue.js"></script> </head> <body> <div id="app"> <h2># 阅读全文
posted @ 2022-10-19 10:20 Sherwin_szw 阅读(27) 评论(0) 推荐(0)
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2022-10-18 20:29 Sherwin_szw 阅读(19) 评论(0) 推荐(0)
摘要: 代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1 阅读全文
posted @ 2022-10-18 17:33 Sherwin_szw 阅读(34) 评论(0) 推荐(0)
摘要: 代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1 阅读全文
posted @ 2022-10-18 16:24 Sherwin_szw 阅读(19) 评论(0) 推荐(0)
摘要: 代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1 阅读全文
posted @ 2022-10-18 14:44 Sherwin_szw 阅读(27) 评论(0) 推荐(0)
摘要: 安装第三方包 pip install django-filter 过滤1 view from django_filters.rest_framework import DjangoFilterBackend class BlogView(ModelViewSet): queryset = model 阅读全文
posted @ 2022-10-14 09:30 Sherwin_szw 阅读(44) 评论(0) 推荐(0)
摘要: 自动生成路由对应关系 路由 from rest_framework import routers router = routers.SimpleRouter() router.register(r'blog', blogViews.BlogView) router.register(r'regist 阅读全文
posted @ 2022-10-12 16:39 Sherwin_szw 阅读(31) 评论(0) 推荐(0)
摘要: 根据是否有pk 切换序列化器 get_serializer_class源码 def get_serializer_class(self): """ Return the class to use for the serializer. Defaults to using `self.serializ 阅读全文
posted @ 2022-10-11 10:48 Sherwin_szw 阅读(33) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页