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
学习ing2017-06-26 10:56:54
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
迷茫2017-06-26 10:56:54
I just came into contact with weex and found that the mobile playground scanning page is blank.