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.

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-1b3cbc7-2b07d.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-1b3cbc7-2b07d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?