限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >开发者

开发者

转载 | 小程序常用功能总结

1.拨打电话 wxml: call: function (e) { var phone = e.currentTarget.dataset.phone; if (!phone) return false; wx.makePhoneCall({ phoneNumber: phone }); }, 2.打开地图 openMap: function (e) { v

小程序 | 点击复制内容

wxml 点击复制 js copyText:function(e){ console.log(e) wx.setClipboardData({ data: e.currentTarget.dataset.text, success: function (res) { wx.getClipboardData({ success: function (res)

CURL分别以GET、POST方式请求HTTPS协议接口api

1、curl以GET方式请求https协议接口 //注意:这里的$url已经包含参数了,不带参数你自己处理哦GET很简单 function curl_get_https($url){ $curl = curl_init(); // 启动一个CURL会话 curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($c

判断密码是否为字母组合+数字,8位

$r = preg_match('/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])[A-Za-z0-9]{8}$/',$_POST['pwd']); if(!$r){ $this->jserror("密码应为大小写字母组合+数字,8位");die; } $r = preg_match('/(?=.*[A-Z])(?=.*[a-z])(?