1.
<template>
<view ref="main">
</view>
</template>
2.
<script setup>
import {
onMounted,
ref
} from "vue";
const main = ref(null);
onReady(() => {
console.log(main.value);
})
</script>
1.
<template>
<view ref="main">
</view>
</template>
2.
<script setup>
import {
onMounted,
ref
} from "vue";
const main = ref(null);
onReady(() => {
console.log(main.value);
})
</script>