after vue is packaged, open [following syntax error] in ie
after vue is packaged, open [following syntax error] in ie
because Object.defineProperty ()
of es6 is not supported by ie8 and below.
in vue, when you pass a normal JavaScript object to the data option of a Vue instance, Vue iterates through all the properties of the object and converts them all to getter/setter using Object.defineProperty
.
but it supports ie9 and above, and lower-version browsers can do shim.
Previous: Is there any way for vscode to generate loop code for js?
Next: Why is django's urls.py import views from from [appname]?
I asked the group that I could actually list vue as a variable, and then vm.value=xx when I clicked, but I didn t understand. ...