for example, now I have a bunch of strings, such as: my mother takes me * *.
now how do I convert "Mom take me " to Mom take me and render it in react as bold.
instead of rendering to Mom take me *
or
like this
for example, now I have a bunch of strings, such as: my mother takes me * *.
now how do I convert "Mom take me " to Mom take me and render it in react as bold.
instead of rendering to Mom take me *
or
like this
<div dangerouslySetInnerHTML={ {__html: 'lilnong'.replace(/()/g,'<i>$1</i>')} }/>
Previous: The format of the usage parameter params of the breadcrumb component of antd
Next: How does ionic3 use the back button to return to the previous page?