Can vue be used directly on the mobile side in the form of script?

the project is special, so we can"t use the packaging tool for the time being, so we can only introduce vue, in the form of script, that is, it can be used as jquery. Is there any compatibility problem in this way? I use it in Wechat

do I need to select a version of vue if it works?

Nov.22,2021

is fine. Do not use es6 syntax, there is a compatibility problem, do not add a comma


at the end of the array, of course, if you do not use packaging tools, choose the compiled vue version, because vue itself is written in ES6.


clipboard.png

above is compatible with version 2.0 +
using script this is one of the supported ways, why not?

our company has a project similar to yours. It was originally developed by jQuery. Some time ago, we introduced a common version of Vue,. The main problem encountered is the incompatibility of browsers with ES6. For example, if an error is reported under the built-in browser of Wechat in a lower version of Android, the direct result is that the page is blank. The problem is solved with babel.


< script src= " https://cdn.bootcss.com/vue/2.; > < / script >


it doesn't matter if you use the es6 page. In fact, you can build a webpack environment to compile https://codeshelper.com/a/11.


whether you use npm or script methods to introduce vue to the mobile, but the problem you need to pay attention to is the adaptation of the mobile, such as on the css, on the event, Specifically, you can check vue's api, or mobile development pit: for example, ios does not support sort function, ios date new
Date () 's conversion of date is different from native js, mobile overflow:hidden is invalid, margin-bottom is invalid in mobile ios

what you need to pay attention to is the problem of es6, but there is no big problem. If there are unexpected problems, please feel free to communicate


Yes, you can write about it on Vue's official website

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb083f-480b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb083f-480b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?