Template Literals (Template Object) Template String (Template String) in ES6 is a string literal (String Literal) that can embed expressions in string text. They look the same as ordinary strings, except that the backtick character ` replaces the quotation marks ' or " in ordinary strings. Unlike ordinary strings, template strings can be written on multiple lines. In template strings All spaces, new lines, and indents will be output as is in the generated string. Extended Literals (literal extension) ES6 adds two new numeric identifiers, the second letter is b to represent binary. , the second letter is o to represent octal. ES6 has better support for Unicode and supports extended strings and regular expressions. Enhanced Regular Expression (enhanced regular expression) ES6 adds the u modifier to regular expressions. The meaning is "Unicode mode", used to correctly handle Unico greater than \uFFFF
1. ES6 new feature development WeChat applet (2)
Introduction: Template Literals (Template Object) Template String (Template String) in ES6 is a method that can embed expressions in string text. In addition to using the backtick character...
##2. How to use font-awesome icons in WeChat applet
Introduction: Download the font-awesome font package, open the Transfonter website, and upload the font fontawesome-webfont.ttf (in theory other file formats It can also be converted (not tried), select base64 encoding, after convert...
3. WeChat applet achieves the effect of barrage
##Introduction: There are many demos online now, but it is not easy to find the one you need. Today I would like to share with you what I wrote. A barrage function. First, here is a rendering: the wxml code is as follows: