摘要: AJAX js技术,发送请求的一种方式. 特点: 1. 异步 局部刷新 传输的数据量小 $.ajax({ url: '/test/', // url路径 type: 'post', // 请求方式 data: { // 请求数据 name: 'alex', age: 84, hobby: JSON. 阅读全文
posted @ 2019-12-27 20:35 干it的小张 阅读(121) 评论(0) 推荐(0) 编辑
摘要: models: from django.db import models# Create your models here.# 书class Book(models.Model): title = models.CharField(max_length=32) publish_date = mode 阅读全文
posted @ 2019-12-27 17:29 干it的小张 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 增加数据: -- Records of app01_author-- INSERT INTO `app01_author` VALUES ('1', '金老板', '18', '15512351234');INSERT INTO `app01_author` VALUES ('2', '小哪吒', 阅读全文
posted @ 2019-12-27 14:26 干it的小张 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-27 10:02 干it的小张 阅读(93) 评论(0) 推荐(0) 编辑