摘要:
/** * 页面的初始数据 */ data: { goodslist: [ { "url": "", "tit": "test01", "add_time": "2017" }, { "url": "", "tit": "test02", "add_time": "2018" }, { "url": "", " 阅读全文
摘要:
/** * 页面的初始数据 */ data: { goodslist: [ { "url": "", "tit": "test01", "add_time": "2017" }, { "url": "", "tit": "test02", "add_time": "2018" }, { "url": "", " 阅读全文
摘要:
var session_id = wx.getStorageSync('session_id'); var header = { 'content-type': 'application/x-www-form-urlencoded', 'Cookie': 'PHPSESSID=' + session_id }; wx.request({ url... 阅读全文
摘要:
$fileRedictory = 'a/b/c/d/e/f/g'; if(!is_dir($fileRedictory)){ $find = explode('/', $fileRedictory); $newdir = ''; foreach($find as $k=>$v){ $newdir .= $k==0?$... 阅读全文
摘要:
在php.ini中配置如下: upload_max_filesize = 100M post_max_size = 100M 在php程序中设置如下: ini_set('memory_limit', '600'); 阅读全文
摘要:
在 js 中取值时,用 e.detail.value.xxx 或 e.detail.value["xxx"],其中 xxx 为 name 属性值。 阅读全文
摘要:
在一般的函数中: this.setData是正确的。 但当在函数中有个请求(wx.request)时: 这样会报错误:this.setData is not a function. 解决方法就是 :在请求(wx.request)外面添加:var that=this;将success中的 改为: 阅读全文
摘要:
1 require('../includes/init.php'); 2 require(ROOT_PATH . '/includes/cls_weixin.php'); 3 require(ROOT_PATH . '/includes/cls_image.php'); 4 //获得二维码图片 5 function downloadimagefromweixin($url){ 6 ... 阅读全文
摘要:
1 /** 2 * 抓取远程图片到本地,可以抓取不带有后缀的图片 3 * @author YanYing 4 * @link bidianer.com 5 */ 6 class GrabImage{ 7 8 /** 9 * @var string 需要抓取的远程图片的地址 10 * 例如:http://www.bidi... 阅读全文
摘要:
环境版本:curl=7.24.0 php=5.3.10 apache=2.2.21 上传图片 上传内容图片(不在素材中显示) 返回:Array ( [url] => http://mmbiz.qpic.cn/mmbiz_jpg/ibOHKkv3GT5B7DQleHnhxJxugyl7jOCKkegc 阅读全文
摘要:
font-family:miui,Oxygen,Arial,Hiragino Sans GB,Microsoft YaHei,\\5FAE\8F6F\96C5\9ED1,STHeiti,WenQuanYi Micro Hei,SimSun,sans-serif; 阅读全文
|