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

鍍金池/ 問答/ HTML問答
硬扛 回答

缺少一個配置

{
    devtool: 'sourcemap'
}
練命 回答

tree綁定的數(shù)據(jù)是一個list,經過下面的函數(shù)computed出來的,保存的時候,我從這個list里面去拿的parentId

 function toTree(data, parent_id) {
    var tree = [];
    var temp;
    for (var i = 0; i < data.length; i++) {
      if (data[i].parentId == parent_id) {
        var obj = data[i];
        temp = toTree(data, data[i].id);
        if (temp.length > 0) {
          obj.children = temp;
        }
        tree.push(obj);
      }
    }
    return tree;
  }
      

我自己獲取是這么寫的

getPermissions() {
        let _this=this;
        let permissions=this.$refs.tree.getCheckedKeys();
        let ids=[];
        permissions.forEach(key=>{
          getParentId(key)
        })
        function getParentId(id) {
            let node=_this.list.find(item=>item.id==id)
            if(node.parentId==0){
              return
            }else{
              ids.push(node.parentId)
              getParentId(node.parentId)
            }
        }
        permissions=[...new Set([...permissions,...ids])]
        return permissions.join(',')
      },
憶當年 回答

<swiper-slide>slide1</swiper-slide>
<swiper-slide>slide2</swiper-slide>
這是兩個輪播頁
這樣寫應該可以
<swiper-slide>slide1,slide2</swiper-slide>
<swiper-slide></swiper-slide>

陪我終 回答

自己搗鼓了一下,總算是弄好了,姑且把過程記錄下來:
-------->以下內容僅供參考<----------
修改完nginx.conf文件后,命令行檢測一下格式是否正確,如下:

/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf

提示successful表示成功,這時就需要重啟下nginx,自己試了好多重啟方法,但都失敗了(我太菜了··),
最后直接強制關閉:

pkill -9 nginx 

然后開啟:

/usr/local/nginx/sbin/nginx

這就成功了

囍槑 回答

You know now CSS3 is used to make games i have also made very interesting transitions and animations through css3 checkout
queryhelp learn programming

舊顏 回答

me too, Do you have a solution?

冷溫柔 回答

你好,我這邊需要個問題就是用了scss, npm run start 我在網頁可以,但是掃碼或者打包后打開的頁面都沒有引入樣式的。請問需要怎么配置的么?

不討囍 回答

思路不難

記住一個嵌套對象,看你的描述應該是3層

[
    {
        name: '1',
        checked: true,
        children: [
            {
                name: '1-1',
                checked: true,
                children: {
                    name: '1-1-1',
                    checked: true
                }
            }
        ]
    }
]

你要做的事情就是點擊某一級顯示這一級下面的children,然后把children里面checked為true的標綠,每個選中/取消選中只要把當前這個child的checked變掉,并且更新父組件選中的數(shù)量即可

至于動畫就簡單實用css3 transition就可以了。把隱藏顯示改成left的變化或者寬度的變化

墨小羽 回答

當然可以,就是第一次timeEnd不會生效而已。

枕邊人 回答

空白的話看看控制臺有沒有報什么錯啊

故林 回答

你在main.js中引入的echarts庫,但在其他組件中使用,肯定用不了。
兩種方法:

  1. 如果只在這個組件中用到echarts,推薦在這個組件中引用echarts,而不是在main.js中。
  2. 如果必須在main.js中引用,建議這樣寫:
// main.js
import charts from 'charts'
Vue.prototype.$echarts = charts
// ...

在其他組件中使用

// component
let myChart = this.$echarts.init(this.$refs.myChart)
敢試 回答

main.js:

import {getCookie, setCookie, delCookie} from 'util/cookie'(根據(jù)你的實際路徑寫,你這沒寫全我隨便編一個)
Vue.prototype.$cookieStore = {
    getCookie,
    setCookie,
    delCookie
}

頁面中:

this.$cookieStore.setCookie('session', ...)
你好胸 回答
在函數(shù)前面加上 new 來調用,也就是利用構造器函數(shù)產生對象的時候, 新的函數(shù)對象被賦予一個prototype
屬性,它的值是一個包含constructor屬性且屬性值為該函數(shù)對象本身。 this.prototype =
{constructor:this},

這個 prototype屬性最大的作用的就是存放繼承特征,訪問構造器上的原型屬性和方法,也就是這里的共享屬性和方法。 這里可以跟js 高程上的用途對應一下。

 // 定義一個構造器,并擴充它的原型
  var Man = function(name) {
     this.name = name;
  }
  Man.prototype.get_name = function() {
      return this.name;
   }
 // 利用 new 產生一個新的函數(shù)對象
 var myMan = new Man ("hero");
 // 訪問構造器上的擴充方法
var name = myMan.get_name();

所以有一種繼承方法,就是修改函數(shù)對象的prototype屬性,實現(xiàn)繼承,

再深入,就涉及到 原型鏈 和 Function.__proto__

尕筱澄 回答

1.對象的__prop__屬性指向 該對象的構造函數(shù)的 原型
2.可以使用obj.方法名 來給這個obj增加方法或屬性 但最好別這么使用,容易使屬性混亂

尐潴豬 回答

直接調用node 的focus是可以的

var node = document.querySelector("#input")
console.log(node.focus())
尐懶貓 回答

是Windows系統(tǒng)嗎?

關閉防火墻或者配置下防火墻允許端口
https://jingyan.baidu.com/art...

淺淺 回答

框架主要作用是組件化,數(shù)據(jù)驅動