鍍金池/ 問答/ HTML問答

引號問題

// $("[data-input=AP 5200]").prop("checked",true); →
$('[data-input="AP 5200"]').prop("checked",true);

// $("[data-input="+spvalue+"]").prop("checked",true); →
$('[data-input="'+spvalue+'"]').prop("checked",true);
憶往昔 回答

淘股吧,是否有違規(guī)內(nèi)容?

青黛色 回答

你的這個語法用錯了應(yīng)該是這樣寫的

<!-- 和 `<transition>` 一起使用 -->
<transition>
  <keep-alive>
    <component :is="view"></component>
  </keep-alive>
</transition>

具體請看api

短嘆 回答

while(true) 當(dāng)然是死循環(huán)了, 沒有為什么

薄荷綠 回答

懷疑是 chrome 的 Dev Tools 搞的鬼,也許是新版的Chrome 的console中的jq解析依賴這個文件(猜測)

翻個墻然后把這個文件加載一下應(yīng)該可以。不影響你代碼的話基本就是他的問題了,問題不大

囍槑 回答

我試了下其實是可以的,雖然 vue 不建議這么做。。??梢栽囋嚢?checkedTime 改成下面這樣

checkedTime (event){
      let memberTimes = event.target.value;
      this.memberTimes = memberTimes;

     // this.isChecked = true ;
     Array.prototype.slice.call(event.target.parentNode.parentNode.children)
          .forEach(function (e) {
        e.classList.remove("item active")
        })
      event.target.parentNode.setAttribute("class","item active")
      if(memberTimes==1){
            this.memberPrice ="1288.00";
        }else if(memberTimes == 2){
            this.memberPrice ="2189.60";
        }else{
           this.memberPrice ="2704.80";
        }
      // console.log(memberTimes);
    },
孤巷 回答

重繪重排的成本高在于 重新計算 重新渲染,
之所以說table性能不好就在于這里,
因為每行每列每個單元格都可能要重新計算,單元格內(nèi)嵌套復(fù)雜元素后計算成本更高,
這里說的重新計算是因為大多數(shù)單元格 或者說 tabel整體寬度長度不是固定的
都是彈性的
就算是現(xiàn)在具有相同特性的flex
如果頁面、頁面元素是固定的 那么table也好flex也好,性能幾乎無差
如果有flex table 中頻繁隱藏、出現(xiàn)子元素 那么就重復(fù)觸發(fā)整體的重新計算 重新渲染
所以說 性能差就差在于 "它" 影響了 "別人"

久舊酒 回答

pc的話檢查路徑是否正確?移動端是不會下載的~

臭榴蓮 回答

這個好像沒有直接的辦法,你只能自己重新畫的吧~

挽青絲 回答

for循環(huán)所有數(shù)據(jù),檢索你的唯一id

        var curList = [];
        var persons = $scope.bussinessList;
        for (var i = 0; i < persons.length; i++) {
            var cur_person = persons[i];
            if (cur_person.id== id) {
                curList.push(cur_person)
            }
        }
        console.log(curList);
忠妾 回答

寫一個頁面跳轉(zhuǎn),將跳轉(zhuǎn)的頁面路徑寫上就可以了,
bindViewTab:function(){

wx.navigateTo({  
     url:"/pages/aaa/aaa"
})
遺莣 回答

1.node_modules 不要上傳
2.可以在根目錄建立一個.gitignore,會忽略不必要上傳的文件 .gitignore

舊城人 回答
        var html ="<ul id='nav'>";
            html+="<li><a href='index.jsp' class='open'><i class='icon-home'></i> 首頁</a></li>";
            html+="<c:if test='${username!=null}'>";
            html+="<li class='has_sub'><a href='#'><i class='icon-home'></i>應(yīng)用測試";
            html+="<span class='pull-right'><i class='icon-chevron-right'></i></span>";
            html+="</a>";
            html+="<ul>";
            html+="<li><a href='index.jsp'>大大管理</a></li>";
            html+="<li><a href='index.jsp'>租戶dddd管理2</a></li>";
            html+="</ul>";
            html+="</li>";
            html+="</c:if>";
            html+="</ul>";
            html+="<script src='js/custom.js'><\/script>";
            $('#menu').append(html);
            
            要把<script src='js/custom.js'><\/script>頁拼接在html中才會有效
巷尾 回答

大概是快捷鍵誤按給關(guān)了吧。
clipboard.png

心夠野 回答
binding.value()
// 直接用value去取就行
初念 回答

JWT一類的都可以滿足,結(jié)合Spring security