Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
目的是在编译前获取到手机型号,然后定义到defineConstants中当做全局变量
@Taro-小助手-honly 内容都是动态生成的,高度是不固定的;如果能设置死高度那就不是问题了……
试用了下taro-plugin-canvas,但是元素的height都要设定死,没办法实现内容撑开图片…… 求推荐好用的插件