鍍金池/ 問答/ HTML問答
護她命 回答

通過<button open-type="contact" /> 跳轉(zhuǎn)到客服頁面,在客服頁面可以引導用戶跳轉(zhuǎn)到App Store

只愛你 回答

自己解決了其實就是

//注釋
var ul = parent.find('ul:visible').slideUp(animationSpeed);
ul.removeClass('menu-open');

//注釋 removeClass("avtive")
parent.find('li.active').removeClass('');

代碼如下:
$.AdminLTE.tree = function (menu) {

var _this = this;
var animationSpeed = $.AdminLTE.options.animationSpeed;
$(document).off('click', menu + ' li a')
  .on('click', menu + ' li a', function (e) {
    //Get the clicked link and the next element
    var $this = $(this);
    var checkElement = $this.next();

    //Check if the next element is a menu and is visible
    if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) {
      //Close the menu
      checkElement.slideUp(animationSpeed, function () {
        checkElement.removeClass('menu-open');            
        //Fix the layout in case the sidebar stretches over the height of the window
        // _this.layout.fix();
      });          
      checkElement.parent("li").removeClass("active");       
    }
    //If the menu is not visible
    else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
      //Get the parent menu
      var parent = $this.parents('ul').first();
      //Close all open menus within the parent
      // var ul = parent.find('ul:visible').slideUp(animationSpeed);
      //Remove the menu-open class from the parent
      // ul.removeClass('menu-open');
      //Get the parent li
      var parent_li = $this.parent("li");

      //Open the target menu and add the menu-open class
      checkElement.slideDown(animationSpeed, function () {
        //Add the class active to the parent li
        checkElement.addClass('menu-open');            
        parent.find('li.active').removeClass('');
        parent_li.addClass('active');
        //Fix the layout in case the sidebar stretches over the height of the window
        _this.layout.fix();
      });
    }
    //if this isn't a link, prevent the page from being redirected
    if (checkElement.is('.treeview-menu')) {
      e.preventDefault();          
    }
  });

};

骨殘心 回答

created鉤子觸發(fā)的時候,vuex$store是已經(jīng)綁定到了vue實例上了的(準確的說是在$store是在beforeCreate鉤子觸發(fā)的時候被綁定到vue實例上)。
https://github.com/vuejs/vuex...

我覺得問題的可能有兩種:

  1. 異步請求數(shù)據(jù)返回后,只存到了localStorage,并沒有存到vuex中。
    因為vuexstate只會初始化一次
    僅僅articles:localStorage["articles"]?JSON.parse(localStorage["articles"]): []是不夠的,請求返回之后還應該把state中的article重新賦值。
  2. 跳轉(zhuǎn)到B的時候 異步請求還沒有返回,vuex中的數(shù)據(jù)自然也就沒有更新了。
萢萢糖 回答

按照<br/>拆開,然后拼接字符串

幼梔 回答
registry=http://xxxx:port/repository/xxxx
@namespace:registry=http://xxxx:port/repository/xxxx
墨染殤 回答

最近也在弄小程序。
我的理解 需要在小程序后臺將后端接口地址配置到白名單 你才能在小程序前端訪問后端接口 然后就正常測試了

鐧簞噯 回答

使用ES5 構(gòu)造函數(shù)仿寫上面的答案

function List1(){            
            this.items = [];
            for(var i =0; i<arguments.length;i++){
                this.items.push(arguments[i]);
            }
            this.length = arguments.length;
            this.add = function(){
                for(var i =0; i<arguments.length;i++){
                    this.items.push(arguments[i]);
                }
                this.length = this.items.length;
            }
        }
深記你 回答

這個看你
手機什么型號,
什么系統(tǒng),系統(tǒng)版本是多少
微信什么版本,
系統(tǒng)權(quán)限是否對微信做了什么限制?

抱緊我 回答

京東 淘寶 什么的網(wǎng)站都會出售這樣的瀏覽數(shù)據(jù)的.
我曾經(jīng)在京東翻了半天自行車,結(jié)果百度貼吧的廣告就全是關(guān)于自行車的了.

厭惡我 回答

樓上說的沒錯,還有個辦法就是在打開商品詳情的時候不要新打開一個頁面,而是在本頁面加載出一個圖層(z-index)置于列表頁之上,然后點關(guān)閉時銷毀這個圖層。

離殤 回答

:action="unloadUrl" 少個 雙引號吧。。。
話說你本地的代理設置是在 config 中設置 proxyTable 嗎。。。設置了代理本地應該也可以上傳呀

久愛她 回答

自己寫一個嘛,vue 讓寫插件變得更簡單

青黛色 回答

這個也可以做?我從來沒遇到過下載chrome下載完成還會彈出提示的,這應該屬于瀏覽器自己的機制

墨染殤 回答

/^[A-Z]/ 為大寫字母開頭
/^[A-Z][\#a-Z0-9]{5,9}/ 嘗試一下
后來修改了下,只能想到用比較笨的方法,進行 | 或操作了,對正則也不是很了解希望你找到更好的辦法。

幼梔 回答

官方el-popver有個嵌套信息的列子:http://element-cn.eleme.io/2....
,看下,應該能解決你這個