WeChat Mini Programs, js or wxs??

WeChat Mini Programs, in the

Mar.16,2021

wxs is specifically for the wxml page, which can be used if you have the need to use the js script on the page, but wxs cannot be referenced by other js files.
currently I rarely wxs , and most of my work is done in js .

here is my article on wxs :
WeChat Mini Programs: use wxs to detect mailbox format instances
WeChat Mini Programs: new feature WXS (added on August 30, 2017.08)


wxs actually means that the encapsulated js, is exactly the same as js.


when developing WeChat Mini Programs, you should choose to use js or wxs depending on the situation.
wxs is dedicated to wxml pages.
wxs and js cannot call each other directly.
there are some things that can be done with both wxs and js, but you will find it more convenient and direct to use wxs.
I find wxs quite useful myself.


my new projects are generated by default. Js ah, there is also wxs.

Menu