微信小程序中的wxs 使用总结

目前接触到的wxs有两种方式: 1,单独的文件形式,引入到页面的结构当中wxml,引入方式可以 对应的页面功能代码写入对应的wxs文件当中,通过引用的方式应用到页面当中 标签引入<wxs src="./../handleSrc.wxs" module="handleSrc" /> require引入 var handleSrc = require("./handleSrc.wxs"); 相对路径
相关文章
相关标签/搜索