zhaoyunyes

Results 11 comments of zhaoyunyes

> 两年了, 还没优化这个问题, 搞得出了个bug, 调试才发现是这个debounce出的问题 直接使用lodash吧,参考[https://staging-cn.vuejs.org/guide/essentials/reactivity-fundamentals.html#stateful-methods](有状态的方法)

@dntzhang 好的.已成功. 但是如果我有一个数量动态变化的列表,是否意味着我新加的元素需要重新new AlloyFinger()才能绑定相应事件呢?插件本身有没有方法处理这种情况呢?

`function loopTransition() { move('#box1').set("transform", "translate3d(80px,20px,0)").duration(2000).end(function() { move('#box1').set("transform", "").duration(1000).end(function() { loopTransition(); }); }); } loopTransition();` Maybe it's not the best way to do it,but it's also a way

## 项目名称 疫查查应用 全国疫情点分布,查看身边疫情,新冠肺炎患者同程查询。 ## 小程序码 ![gh_bbdf63e0527d_344](https://user-images.githubusercontent.com/16451550/75129100-6c7e7780-5702-11ea-87c0-dd3faf7a7538.jpg)

我是直接在文件名上就加上前缀了。

ps:看的是电子书不知道第几页 不过代码在4.7篇章

css里的标签选择器转换是uni-app自带的功能,但是在vue3版本中已经不支持了,建议在去掉tailwind preflight的引入。 ![image](https://github.com/sonofmagic/weapp-tailwindcss/assets/16451550/0eed37f5-bc67-47c2-8c10-2e9edf411841) ![image](https://github.com/sonofmagic/weapp-tailwindcss/assets/16451550/2e8dc095-0330-46a9-81d6-bab87b5e9f69)

所以直接用第一种方案好了 addRoutes做了更多的额外工作 > [vue-router的一段示例](https://v3.router.vuejs.org/zh/guide/advanced/meta.html) ```js router.beforeEach((to, from, next) => { if (to.matched.some(record => record.meta.requiresAuth)) { // this route requires auth, check if logged in // if not, redirect to login...

> 如果用户登录成功后获取到用户权限后添加路由,然后跳转到某一功能页面后存储浏览器书签以便下一次进入网页。这时候如果用户打开书签,但是功能页面并没有注册路由,页面是一片空白该如何处理,大神的文章好像并没有提及这一点 用导航守卫就好了,一般情况下完全没必要用addRoutes。所以最优选应该是方案一