requirements require the product list to add a left slide delete function, but after adding, the left slide will cause scrolling up and down, how to limit it? Please tell me your thoughts
.requirements require the product list to add a left slide delete function, but after adding, the left slide will cause scrolling up and down, how to limit it? Please tell me your thoughts
.you can set up a flag,. First, add event detection in the left slide delete place, assign a value to the flag when marking the deletion, and then add an event to the list scrolling to check whether the flag is assigned. If there is an assignment, that is, when the deletion action is in progress, do not scroll. If not, just let the normal list scroll
Previous: The difference between creating element (createElement) and concatenating string (innerHtml) in JS
for example, in the tab switching page like the following, the method I use now is to click the current option to call the API, for example, click all to call, click to withdraw and call once, but this will waste the interface. What I want to do now is ...
<block wx:if="{{true}}"> <view> view1 < view> <view> view2 < view> < block> Is there any difference between and the following one? <view wx:if="{{true}}"> <view> view1 < view&...
problem description what is the purpose of the existence of the wxs module? What s the difference between a normal js module and a normal one? What is the meaning of using variables and functions defined in the wxs module in wxml? the environmental...
<!-- --> <swiper> <swiper-item wx:for="{{ sku.all_url }}" wx:key="{{ key }}"> <video class= sku-img wx:if="{{ item.urlType== video }}" src="{{ item.url }}">< video>...
requirements require the product list to add a left slide delete function, but after adding, the left slide will cause scrolling up and down, how to limit it? Please tell me your thoughts ....
that is, if the value bound on the page changes, the value in data can also be changed accordingly, now I mainly don t want to write about input events. want it to change automatically, is there any way, bosses? ...
is there any solution similar to vue s computed and watch in native Mini Program? the one I use now is not perfect. take watch as an example. If you change data.obj, you can monitor it. If you change data.obj.a, you will not be able to monitor it....