javascript - Text click effect of Weex's <text>
ringa_lee
ringa_lee 2017-05-19 10:33:24
0
3
557

The text in weex has no click effect by default. The official website has not found a way to obtain the press status. Is there anyone who can implement a function similar to Android's selector?

ringa_lee
ringa_lee

ringa_lee

reply all(3)
小葫芦

Don’t weex provide active pseudo-classes? You can set the css of click status

習慣沉默

Either you have a native developer partner and let him customize onecomponentfor you to use.

https://weex.incubator.apache...


Or you can implement it yourself using css

習慣沉默

I thought of a lucky method. The click event changes color and uses settimeout to delay the change back. This method is acceptable when the finger is not pressed and held intentionally. Hehe

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