taro uses the original h5 tag

At present, taro is still immature and has too little ecology. If all taro syntax tags are used, an error will be reported directly when the applet is converted, and tags such as div and span cannot be used, and other ui component libraries cannot be used, and development will be very limited.

Use raw h5 tags:

npm add @tarojs/plugin-html

Add the following in config/index.js:

config = {
  plugins: ['@tarojs/plugin-html'],
}

Guess you like

Origin blog.csdn.net/qq_46149597/article/details/129379132