上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: 微信小程序之button组件 ''' 推荐使用button组件获取授权微信用户的信息 点击按钮事件自动触发获取wx.getUserInfo ''' 1. // pages/login/login.wxml 登录 | 注册 2. // pages/login/login.js wx.login() o 阅读全文
posted @ 2020-03-10 16:23 阿浪阿浪 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: 1.生命周期函数 监听页面加载(options接收值) 1.1 navigator 1. 2. // pages/auctionDetail/auctionDetail.js onLoad: function(options) { this.setData({ auctionId: options. 阅读全文
posted @ 2020-03-10 11:50 阿浪阿浪 阅读(238) 评论(0) 推荐(0) 编辑
摘要: def validate_字段名(self, value),单一字段校验 from rest_framework import serializers from rest_framework import exceptions from .. import models class BidModel 阅读全文
posted @ 2020-03-04 18:11 阿浪阿浪 阅读(450) 评论(0) 推荐(0) 编辑
摘要: ListAPIView ''' 重构list方法, def list(self, request, args, kwargs): response = super().list(request, args, kwargs) response 父类list方法的返回值Response(serializ 阅读全文
posted @ 2020-03-04 17:28 阿浪阿浪 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: ModelSerializer ModelSerializer是Serializer的子类,序列化和反序列化跟Serializer一样。 ModelSerializer与常规的Serializer相同,但提供了: ''' 基于模型类自动生成一系列字段 基于模型类自动为Serializer生成vali 阅读全文
posted @ 2020-02-13 09:21 阿浪阿浪 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1. 简单示例 def cos_upload(image_obj, file_name): """ :param image_obj: 上传图片对象 :param file_name: 上传图片名字 :return: """ secret_id = 'AKIDOZYR7YmjU3Scf6qYP3e4 阅读全文
posted @ 2020-02-11 22:00 阿浪阿浪 阅读(1666) 评论(0) 推荐(0) 编辑
摘要: datetimepicker:时间选择器 ''' ''' {% endblock %} 2. 年月日时分秒 {% block js %} {% endblock %} 阅读全文
posted @ 2020-02-11 21:43 阿浪阿浪 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 1. 申请个人微信公众号 1. https://mp.weixin.qq.com/cgi bin/registermidpage?action=index&lang=zh_CN&token= 注册订阅号 2. 注册完成后关注公众号 https://mp.weixin.qq.com/cgi bin/s 阅读全文
posted @ 2020-02-08 01:03 阿浪阿浪 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 1. 简单了解 序列化字段处理原始值和内部数据类型之间的转换。它们还处理验证输入值, 以及从其母对象检索和设置值。 导入:from rest_framework import seriaalizers 使用:serializers. 有 serializers.Serializer 和 serial 阅读全文
posted @ 2020-02-07 23:55 阿浪阿浪 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 0. 官方指南 由于微信小程序的异步机制,页面跳转会出现随机事件 目的: 解决认证跳转过程的不友好体验 https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom tabbar.html 1. app.json文 阅读全文
posted @ 2020-02-07 17:42 阿浪阿浪 阅读(1511) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页