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ò)人氣名人講師,...
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.