亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - How does weex monitor scrolling to a certain place and then add fixed fixed effects?
高洛峰
高洛峰 2017-06-26 10:54:54
0
2
955

Using the weex framework, the scenario is as follows:
Scroll to somewhere to make it fixed?

The situation we are encountering now is to use vue writing method, but weex does not seem to support it

高洛峰
高洛峰

擁有18年軟件開發(fā)和IT教學(xué)經(jīng)驗。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項目經(jīng)理、高級軟件工程師等職務(wù)。 網(wǎng)絡(luò)人氣名人講師,...

reply all(2)
學(xué)習(xí)ing

Question and answer for yourself:
The premise is that you cannot use the header component that comes with weex

Mainly through the common events provided by weex, appear and disappear, plus the control switch
By default, the element is in the document flow. When the element disappears from the screen when scrolling, use the disappear event and give it fixed.
When scrolling to this element and appearing on the screen again, use the appear event and remove fixed

This method can solve the above problems, but there is still a small flaw, that is, it must be scrolled until the element disappears from the screen before it can be fixed. Unlike ordinary DOM operations, it is fixed as soon as the target element is touched

迷茫

I just came into contact with weex and found that the mobile playground scanning page is blank.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template