as shown in the figure above, a string is sent back in the background. How to highlight the number?
as shown in the figure above, a string is sent back in the background. How to highlight the number?
insert a span, for example: xxxx sent you < span class= "number" > 2 messages
1. Regular matching comes out
2. Let the background change it. Pass XXX and 2 separately
.number{
color: -sharpff0000;
}
to traverse this string, use typeof, to truncate the numeric type, then store the variables, and then give the style
separately.<view class= a > <text> Hello {{name}}!< text> <block wx:for= {{datas}} wx:key= u > <button data-index= {{index}} class= {{index==id?classname:""}} data-m= {{t==index}} bindtap="changeName...
for the business needs of the company, the details section of a page of Mini Program is the html tag edited by the rich text editor returned from the API, and the image matches the text. I originally thought that Mini Program did not recognize the html t...
it is in the middle on the Android, but it is crooked with the Apple 6 test. It doesn t work with either of the following. display: flex; justify-content: center; align-items: center; text-align: center; ...
problem description recently I was contacting and writing Mini Program, and I encountered a problem. I don t know why, that is, I render the data to the foreground page in the developer s tool, which is normal in the developer s tool, but it s not...
I now use Mini Program touch start events bindtouchstart and bind:touchend as press and release events, but to make certain restrictions, if a single point is not implemented, how to limit ah? startRecord: function(e) { console.log( ) ...
formSubmit formSubmit e { this.triggerEvent( formSubmit ) } <son-form bindsubmit="formSubmit">< son-form> formSubmit formSubmit e { console.log(1) } ...
how to use onPageScroll, in WeChat Mini Programs Custom component I set the value in properties in the component when I need onPageScroll. ...
1. 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, such as click all to call, click to withdraw and call once, but this will waste the interface. What I want to do now is to...
<i-input value="{{ number }}"> <input value="{{ value }}"> properties:{ value: Sting } valuenumber valuenumber ...
because Mini Program s router cannot display content in part of the page like vue-router, it is necessary to use eventbus when doing the bottom navigation bar, and Wechat wx:if, for the middle content, but wx:if will make the component s hook function ...
Why is the following sentence wrong? wx.getBackgroundAudioManager().src = http: music.163.com song media outer url?id=29719651.mp3 ...
getStorage-22...
getMenuInfo () { wx.request({ url: https: appdb.hsltm.com wxapi-web indexPageDiaryCategory , data: {}, method: get , header: { content-type : application json }, success: function (res) { if (res.data == 0) { co...