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

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年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
学习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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!