鍍金池/ 問答/ HTML問答
瘋子范 回答

match得到的是個數(shù)組所以報錯而且正則應(yīng)該是/^[0-9]d$|(^[0-9]+.[0-9]{0,8})/,watch檢測數(shù)據(jù)是沒問題的。用computed反而會麻煩一些

獨特范 回答

1.試試這樣呢,我這邊是可以的

<input type="password" readonly onfocus="this.removeAttribute('readonly')" value="" autocomplete="off"> 

2.在創(chuàng)建2個input

<input type="password" > //隱藏
<input type="password" > //實際使用的password
妖妖 回答

貼下代碼唄,是不是因為添加點擊事件的時候v-for還沒渲染完

詆毀你 回答

?用computed:

loadTopResult () {
    if (this.city && this.country) {
       let res = this.loadTop()
       return res
    }
}

watch和computed的區(qū)別

網(wǎng)妓 回答

state的內(nèi)容都是自定義的。你可以在Link的pathname對應(yīng)的Route的render或者children里面中的location對象拿到你自定義的state,然后做什么完全取決你

悶騷型 回答

navigator.onLine 可以判斷網(wǎng)絡(luò)連接狀態(tài)

壞脾滊 回答

用了vue為啥還這么干呢
@click="f(r)"這樣調(diào)用吧,函數(shù)f里面再去調(diào)用你的window下的函數(shù)吧

心癌 回答

then(res => { this.xxx = xxxx })

刮刮樂 回答
  1. 可能是加了類名,改變了 css;用瀏覽器審查一下。
  2. 還有可能是 UI兼容問題,vue的 Mint-ui在一些安卓機就會出現(xiàn)這種,點擊沒顯示。
有你在 回答

怎么實現(xiàn)占位傳值呢 就是文本某個位置字符需要動態(tài)改變 比如:
message: {

  hello: '你好'{0}
}

就是可以實現(xiàn) 你好lucy \你好Rosi 這樣的
久不遇 回答

樓主解決了嗎,我也遇到同樣的問題

遲月 回答

你把子組件里面取值代碼改成這個 this.$route.params.ordersid

夢若殤 回答

你可以查一下vue單文件組件,這也是項目中最常使用的組件組織形式。

貓館 回答

decodeURIComponent轉(zhuǎn)一下

兔寶寶 回答

或許,可以這樣?
WebView 組件參考 · GitBook - http://docs.cocos.com/creator...

深記你 回答

包沒有下載完整,重新一下,或者更換源重試一下

抱緊我 回答

可以在根目錄index.html中寫js腳本,根據(jù)lang判斷跳轉(zhuǎn)目錄。

笑浮塵 回答

HTML代碼:

<div class="ct">
  <div class="left">left</div>
  <div class="right">right</div>
   <div class="main">main</div>
</div>

CSS代碼:

.left,
.right {
  width: 100px;
  height: 100px;
}
.left {
  background: blue;
  float: left;
}
.right {
  background: green;
  float: right;
}
.main {
  background: red;
  height: 100px;
  margin: 0 100px;
}