在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/ HTML問(wèn)答
老梗 回答

1.你把nav調(diào)試一下看看什么值。
2.你nav+=,還在for里append,沒(méi)有重復(fù)?
3.確認(rèn)一下選擇器有問(wèn)題。

默念 回答

前后請(qǐng)求是否對(duì)返回的數(shù)據(jù)有依賴(lài)

安若晴 回答
var userid = 'xxxx';
html += '<input type="hidden" name="userid" value="' + userid + '"/>';
下墜 回答

let url = window.location.href;

純妹 回答

這個(gè)不是遞歸調(diào)用就可以嗎?如果statusCode一直是6002,那么就一直執(zhí)行function,直到想要的結(jié)果為止,可以給回調(diào)函數(shù)加上名字,而不是用具名函數(shù),callee畢竟不好,

祉小皓 回答

你改變子組件的數(shù)據(jù)是不會(huì)觸發(fā)父組件的鉤子的。Vue中的通信是單向的,父組件可以通過(guò)props來(lái)向子組件傳遞信息,也就是說(shuō)子組件可以知道父組件的狀態(tài)變化,而子組件的狀態(tài)變化父組件是不知道的。
如果你想讓子組件向父組件發(fā)送信息,可以通過(guò)onemit來(lái)指定和觸發(fā)自定義事件來(lái)進(jìn)行通信,或者也可以用vuex來(lái)實(shí)現(xiàn)這個(gè)功能。

溫衫 回答

在data中聲明 option配置
在Axios中修改

Axios.then((res)=>{
    this.option.serise[0] = res.data.data;
    //數(shù)據(jù)處理之后  init echarts函數(shù)
})

保險(xiǎn)起見(jiàn)

var pid = "{$vo['bm_scheme_cid']['pid']}";  //23  
var phtml = '<option value="">省</option>';
$.each(citylist,function(i,v){
  if (v['id']===pid) {
    phtml += '<option value="'+v['id']+'" selected >'+v['name']+'</option>';
  } else {
    phtml += '<option value="'+v['id']+'">'+v['name']+'</option>';
  }
     
});
$("select[name='backmoney_basetpl_pid']").html(phtml);
浪婳 回答

就你的代碼而言,
<Checkbox checked={this.state.checks} onChange={this.onChangea} />
單選沒(méi)效果是因?yàn)?,onChange的時(shí)候 this.state.checks 的狀態(tài)沒(méi)有改變,this也沒(méi)有傳入方法里面。
改正后 <Checkbox checked={this.state.checks} onChange={this.onChangea.bind(this)} />
onChangea(e) {

  this.setState({
      checks:e.target.checked,
  });            

}
這時(shí)你會(huì)發(fā)現(xiàn)單選后所有的Checkbox都被選中了,是因?yàn)槟鉉heckbox設(shè)置的checked都是this.state.checks,所以狀態(tài)都會(huì)改變。
所以你的代碼本身就不應(yīng)該這樣寫(xiě),這里可以用 CheckboxGroup 去實(shí)現(xiàn),具體代碼可參考

逗婦惱 回答

更新你的依賴(lài)包看看,我之前回答過(guò)一個(gè)類(lèi)似的問(wèn)題,當(dāng)時(shí)那位題主是更新依賴(lài)包就解決了。


補(bǔ)充:
https://github.com/webpack-co...
順便檢查下css中有沒(méi)有出現(xiàn)語(yǔ)法錯(cuò)誤

耍太極 回答

你可以用一個(gè)數(shù)組來(lái)存class狀態(tài)。

<button data-index='{{index}}' class='{{index+1==selectedList[index]?"m":""}}' bindtap="changeName"> {{item.data}} </button>

Page({
  data: { name: 'lili', selectedList:[], datas: datas.dataa },
  changeName: function (e) {
    var x = e.currentTarget.dataset.index
    this.setData({
        ['selectedList[' + x + ']']: this.data.selectedList[x]?null:x+1
    })
})
生性 回答
實(shí)在不知道是為什么

你打印一下inp1,inp2的值就知道為什么了

任她鬧 回答

<Link to="/" onlyActiveOnIndex={true} activeClassName="active">首頁(yè)</Link>
傳送門(mén)

乖乖噠 回答

路由配置給layout加上redirect。組件里面引入你的頭和腳。中間用router-view

我以為 回答

你檢查下你調(diào)用時(shí)用戶(hù)登錄狀態(tài),如果刷新了沒(méi)有使用加密時(shí)的sessionKey會(huì)導(dǎo)致調(diào)用失敗,你是否判定了第三方的調(diào)用會(huì)回調(diào)參數(shù),默認(rèn)的獲取手機(jī)號(hào)是不用驗(yàn)證碼的
參考:
獲取手機(jī)號(hào)

wxml

<button wx:if="{{canIUse}}" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">授權(quán)登錄</button>
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">獲取手機(jī) </button>

js

Page({

  /**
   * 頁(yè)面的初始數(shù)據(jù)
   */
  data: {
    canIUse: wx.canIUse('button.open-type.getUserInfo')
  },

  /**
   * 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面加載
   */
  onLoad: function (options) {
    var that = this;
    // 查看是否授權(quán)
    wx.getSetting({
      success: function (res) {
        if (res.authSetting['scope.userInfo']) {
          // 已經(jīng)授權(quán),可以直接調(diào)用 getUserInfo 獲取頭像昵稱(chēng)
          wx.getUserInfo({
            success: function (res) {
              //獲取用戶(hù)敏感數(shù)據(jù)密文和偏移向量
              if (res.userInfo) {
                //數(shù)據(jù)庫(kù)存儲(chǔ)用戶(hù)首次基本信息
                wx.request({
                  url: 'https:/xxxx',
                  data: {
                    userid: wx.getStorageSync('userid'),
                    avatarUrl: res.userInfo.avatarUrl,
                    city: res.userInfo.city,
                    country: res.userInfo.country,
                    gender: res.userInfo.gender,
                    nickName: res.userInfo.nickName,
                    province: res.userInfo.province
                  },
                  header: {
                    'content-type': 'application/x-www-form-urlencoded'
                  },
                  method: 'POST',
                  success: function (res) {
                    //console.log(res);
                    wx.showToast({
                      title: '登錄成功',
                    })
                  }
                })
              }
            }
          })
        }
      }
    })
  },

  /**
   * 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面初次渲染完成
   */
  onReady: function () {
  
  },

  getPhoneNumber: function (e) {
    console.log(e.detail.errMsg)
    console.log(e.detail.iv)
    console.log(e.detail.encryptedData)
  },
}

效果圖

圖片描述
圖片描述

我順序點(diǎn)擊登錄與收獲手機(jī)

心夠野 回答

setTimeout(() => {

self.$refs[formName].resetFields()

}, 0)