uniapp 分离 html,js,css 当文件比较大的时候,建议分开

uniapp 分离 html,js,css

<template>
<view id="wrap">
reg
</view>
</template>
<script>
import regjs from "./reg.js";
export default{...regjs};
</script>
<style lang="scss" scoped>
@import "./reg.scss";
</style>

image