You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<template>
<div class="comment">
// comment text
<p>...</p>
// type can be 'open-graph', 'image', 'video'...
<dynamic-link :data="someData" :type="type" />
</div>
</template>
Algorithm 删除排序数组中的重复项
后来参考了网上的思路,学习了不少,代码量也少。因为数组是有序的,所以下标越大的项,值越大,根据这个特性,可以定义一个变量记录数值不同的下标,并且用这个值取作为下标覆盖掉原数组中该下标的值
执行用时:80 ms
Review 实现一个 Vue 动态组件
https://medium.com/scrumpy/dynamic-component-templates-with-vue-js-d9236ab183bb
复述:本文讲述了,动态组件的应用,及优点。
一个组件实现多个不同的视图
方便组件扩展
这时异步。模板只需要在需要的时候加载
让代码更简洁
Tip vue作用域插槽
引用来自这里了解更多小技巧
Share uni-app 路由插件uni-simple-router实践
https://github.com/SilurianYang/uni-simple-router
在useRouter.js中引用路由插件,并且配置router
main.js中引入useRouter.js
使用this.$Router.push实现路由跳转
The text was updated successfully, but these errors were encountered: