摘要:
默写ajax基本语法,及提交json数据和文件都需要添加哪些额外参数 ajax基本语法(jquery版): $.ajax({ url:'',#不写默认朝当前页面提交 type:'post',#不写默认提交方式为get data:{},提交数据 dataType:'json', success:fun 阅读全文
posted @ 2020-06-04 21:37
xiongsheng
阅读(163)
评论(0)
推荐(0)
摘要:
1. choices参数的应用场景有哪些,如何获取该字段的值 针对一些可以列举出完全的可能性字段,规范用户的输入,例如性别。 example: class User(models.Model): GENDER_CHOICES = ( (1,'male'), (2,'female'), (3,'sec 阅读全文
posted @ 2020-06-04 08:07
xiongsheng
阅读(197)
评论(0)
推荐(0)

浙公网安备 33010602011771号