爱玺玺

爱玺玺的生活日记本。wx:lb87626

layui的{d.id}的d,应该就是默认的data的简写

参考官网:http://layui.88662.top/demo/table/form.html

微信小程序设置获取焦点focus

data: {

        inputShowed:true,

        baseURL: baseURL,

        sales: null,

        draw: null,

未命名

<input class="weui-input" placeholder="扫码录入单号" value="{{qrcode}}" bindconfirm="doConfirm" id="myInput"/&g

微信小程序点击回车响应事件 用bindconfirm绑定事件

<input class="weui-input" placeholder="扫码录入单号" value="{{qrcode}}" bindconfirm="doConfirm"/> 

<

微信小程序页面配置

{

  "usingComponents": {},

  "navigationBarTitleText": "主页"

}


mysql SELECT GROUP_CONCAT作为where in条件改用find_in_set(字段,groupcat)

SELECT uid from eb_user where find_in_set(uid,(SELECT GROUP_CONCAT(u2.uid) from eb_user as u2 where u2.uid in(58645,46190,53748,51260)));

thinkphp Db::query()返回think\db\think对象和原始结果集

不加select返回think对象 

$list=Db::table('eb_wechat_pay'); 

加select返回原始结果集

$list=Db::table('eb_wechat_pay')->select();


thinkphp where not in 语法where('uid', 'not in', ['60830','3'])

$relUinfoLstSQL = WechatPay::setWhere()->where('uid', 'not in', ['60830','3']);

vue img 的图片路径不能直接用src 要用:src

<img :src="item.avatar" style="width: 30px;">

微信小程序json键名是中文

微信小程序json键名是中文的渲染方法 

<view wx:for="{{tmpData}}" wx:for-item="it" wx:for-index="i">

    {{it['单据类型']}}

    {{it['单据类型

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5