vuejs / Discussion

Vue.js discussion
167 stars 17 forks source link

how to get document height after data is ready and the page is rendering? #1268

Open zuilafeng opened 8 years ago

zuilafeng commented 8 years ago

recently, I've using Vue2.0, and I'm very annoyed with issue that facing, i wanna get the document height after the page is loading,using watch function to see the value whether is changed,in fact, it does.but the new value isn't the correct value that i get the result from the console by inputing document.body.clientHeight.

it've wasted lots of time.so help!