摘要:
1. django-admin startproject HelloWorld创建项目 2. python manage.py runserver 0.0.0.0:8000 运行项目判断是否可行 3.python manage.py makemigrations 创建表结构 4.python man 阅读全文
摘要:
overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; word-wrap: break-word; line-heig 阅读全文
摘要:
background-image:url("http://lbs.lanbanshou.com/static/merchant/bg@2x.png"); background-repeat:no-repeat; overflow:hidden; background-position:center; 阅读全文
摘要:
获取StorageSync的值的时候,会发现值不同,必须调用getParam,这个方法有个返回值,return才能把真的值获取到 阅读全文
摘要:
toRevocateMark: function(event) { console.log(event); var index = event.currentTarget.dataset.index; var i = parseInt(index); var newss = this.data.newss; var that = this; wx.... 阅读全文
摘要:
小程序后台的配置就是按照官方文档步骤,但是需要注意的是配置路径的时候必须是服务器下面存在的路径,否则就不行,如配置https:www.123.com那么测试的就只能是https:www.123.com/c小程序扫码进入的页面很多时候进入的线上版本,而不是测试版,这个时候需要改路径的范围只能是测试版或 阅读全文
摘要:
src="{{storeimg}}" wx:if="{{storeimg}}" 这样能处理图片懒加载 但是src中加点其他的地址就会出错 阅读全文
摘要:
onBind: function (e) { var that = this; var index = this.data.index++; console.log(e); this.data.array.push({ offsetX: e.changedTouches[0].pageX, offset... 阅读全文
摘要:
上传图片代码就是上面的这些,但是会出现有时候能上传上去有时候不能,原来是小程序做了限制,大概在2m以内 大家觉得不错的话可以支持一下 阅读全文
摘要:
1.下载地址https://github.com/wangfupeng1988/wangEditor/releases](https://github.com/wangfupeng1988/wangEditor/releases 把这个文件下载好了,用哪个引入哪个 2.创建一个文本编辑器 <scri 阅读全文