接收端的js页面代码
/**
* 页面的初始数据
*/
data: {
...
微信小程序点击按钮获取手机号码并发送到web-view页面
wxml页面代码:
<button class="gettel" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">授权获取手机号码</button>
...
微信小程序输入姓名判断然后获取手机号码并发送到web-view页面
微信小程序实现下拉刷新onPullDownRefresh代码实现
第一步:
新建一个文件shuaxin(可在app.json里边pages模块复制一行
"pages/shuaxin/shuaxin",
第二步:
进入shuaxin的shuaxin.json页面加多一行启用下拉刷新的代码(如果上一行有数据的记得加英文的,)
...
微信小程序view-web模块跳转回小程序页面代码及其他代码
<a onclick='loadXMLDoc2()' style="color: #fff;font-size:13px;padding:6 10 6 10px;
background: #333;margin-top:10px;text-decoration:none;border-radius:0 20px 20px...
php版本低于5.3解决json_encode中文UNICODE转码问题的代码
function decodeUnicode($str)
{
return preg_replace_callback('/\\\\u([0-9a-f]{4})/i',
create_function(
&nbs...
asp批量更新
exec="select * from YC_pic "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
i=0
b=0
if not rs.eof then
do while not rs.eof
if rs("jstime")&...
asp Function函数
<%
'Function gg_pic(gg_picid)
' exec="select * from gg_pic where id="&gg_picid
' set rs=server.createobject("adodb.recordset")&...
asp远程获取链接并检测是否是正常网页
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("*.mdb")
exec="select * from 表名"
...
asp上传图片代码
<form action="upload.asp" method="post" enctype="multipart/form-data">
<input type="file" id="file1" name="file1" /><input name="" type="submit" value="保存编辑" />
&...