Vue页面嵌入其他页面

1.核心部分

   <iframe src="../../A4的测试.html"  scrolling="no"  style="width: 100%;height: 500px;" frameborder="0" ></iframe>

src可以使用网页连接模式,如果不成功则需要考虑跨域问题。

2.整体代码

<template>
    <div>
    <iframe src="../../A4的测试.html"  scrolling="no"  style="width: 100%;height: 500px;" frameborder="0" ></iframe>
    </div>
</template>

<script>
    export default {
        
    }
</script>

<style lang="scss" scoped>

</style>

获取文章流量推荐曝光度随便胡说八道两句

vue3.0带来了什么

1.性能的提升

  • 打包大小减少41%
  • 初次渲染快55%,更新渲染块133%
  • 内存减少54%
  • ........

2.源码的升级

  • 使用Proxy代替defineProperty实现响应式
  • 重写虚拟DOM的实现和Tree-Sharking
  • ......

3.拥抱TypeScript

  • vue3.0更好的支持TypeScript

4.新的特性

Composition API(组合api)

。 setup配置

。ref与reactive

。watch与watchEffect

。 provide和inject

。 .......

新的内置组件

。 Fragment

。Teleport

。Suspense

其他改变

。新的生命周期钩子

。data选项应始终被声明为一个函数

。移除keyCode支持作为v-on的修饰符

猜你喜欢

转载自blog.csdn.net/QQ675396947/article/details/126464768