1.下载安装django-redis pip install django-redis 2.settings.dev中添加配置 # 设置redis缓存 CACHES = { # 默认缓存 "default": { "BACKEND": "django_redis.cache.RedisCache", ...
分类:
编程语言 时间:
2020-06-20 16:22:45
阅读次数:
84
1、有用的网址 表盘 echarts https://echarts.apache.org/examples/zh/editor.html?c=gauge 搜索盘 http://www.pansoso.com/ Jquery评论插件 http://www.jq22.com/yanshi16802 在 ...
分类:
其他好文 时间:
2020-06-20 16:11:41
阅读次数:
59
// change事件 $('input[type=radio][name=type]').change(function () { if (this.value == '1') { $('.jump-item').show(); } else if (this.value == '2' || th ...
分类:
Web程序 时间:
2020-06-20 16:10:28
阅读次数:
177
<meta>标签 开发移动端项目需要使用视口标签<meta>来禁止缩放,页面显示时文字就不会变小了: 这是移动端屏幕适配问题解决过程中会遇到的一环(布局便是另一环): 1、谷歌浏览器使用手机模式调试时,手机型号旁边是独立像素,各种手机屏幕大小看起来差不多,但像素分辨率区别很大,因为使用设备独立像素作 ...
分类:
移动开发 时间:
2020-06-20 16:07:53
阅读次数:
82
1.使用容联云,实现短信发送功能 下载好容联云sdk 2.然后再需要发送短信的地方,调用容联云接口即可 from .yuntongxun.sms import CCP ccp = CCP() ret = ccp.send_template_sms(mobile, [sms_code, sms_tim ...
分类:
编程语言 时间:
2020-06-20 15:51:49
阅读次数:
61
html: <div class="hot-purchase"> <div class="title">热门团购</div> <dl class="item on"> <dt> <a href="" class="text-area">[text]</a> <a href="" class="tex ...
分类:
Web程序 时间:
2020-06-20 14:15:09
阅读次数:
72
1.手机号码唯一性验证 """ 接口访问地址: /user/mobile/(?P<mobile>1[3-9]\d{9})/ """ from rest_framework import status class MobileAPIView(APIView): def get(self,request ...
分类:
移动开发 时间:
2020-06-20 13:40:11
阅读次数:
78
下面是一个简单的解决方案,如果不想定义一个操作过滤器 使用jQuery的客户端代码: $.ajax("http://www.myserver.com/Home/JsonpCall", { dataType: "jsonp" }).done(function (result) {}); MVC控制器的 ...
分类:
Web程序 时间:
2020-06-20 10:37:08
阅读次数:
96
jQuery总结 jQuery引入 下载链接:jQuery官网 (https://jquery.com/),首先需要下载这个jQuery的文件,然后在HTML文件中引入这个文件,就可以使用这个文件中帮我们提供的jquery的接口了 中文文档:jQuery AP中文文档 (http://jquery. ...
分类:
Web程序 时间:
2020-06-20 01:15:24
阅读次数:
59
jquery easyui 有写好的前端代码JQuery 选择器 查找标签或class或id // $('*').css('color','red'); $('div').css('color','blue'); $('p').css('color','green'); $('#p').css('c ...
分类:
其他好文 时间:
2020-06-19 22:55:10
阅读次数:
52