輸出のデフォルト{
データ(){
{戻ります
日付:[]
}
}、
方法:{
getInitialUsers非同期(){
RESの=はget_message.get待ってみましょう( 'のhttp:// localhostを:3000 / JSON')
this.date.push(RES)
console.log(this.date)
}、
スクロール(){
window.onscroll =()=> {
//はconsole.log( "距離をスクロールするスクロールバー"、document.documentElement.scrollTop)
//はconsole.log( "視覚的なウィンドウの高さ"、window.innerHeight)
//はconsole.log( "要素の高さ"、document.documentElement.offsetHeight)
聞かせてbottomOfWindow = document.documentElement.scrollTop + window.innerHeight === document.documentElement.offsetHeight
console.log( "下にスライドさせる"、bottomOfWindow)
IF(bottomOfWindow){//ユーザドロップダウンボト
setTimeout(()=> {
this.getInitialUsersは()//データ送信要求AJAXを取得します
}、1000)
}
}
}
}、
{)(マウント
this.getInitialUsers()//ページがロードされ、データ要求
this.scroll()//プルダウン底AJAXへの要求を取得し、各再送されたユーザデータ
}
}