Contents
see List작성일 2022. 07. 27.
<template>
<section>
<testChild ref="child01" />
</section>
</template>
<script>
import {ref} from "vue";
import testChild from "@/components/main/testChild ";
export default {
components: {
testChild ,
},
setup() {
const child01= ref(null); //템플릿의 ref 명과 변수명을 일치
const child01_call = (testValue) => {
child01.value.func_call(testValue); //자식 컴포넌트에 정의된 함수명 호출
}
return {
child01 //중요 필수사항
}
},
}
</script>
<style scoped>
</style>
javascript
| No | 작성일 | Title |
|---|---|---|
| 167 | 2015. 03. 05. | [ javascript ] radio 버튼 자동체크하기 |
| 112 | 2014. 12. 31. | [ javascript ] 천단위 콤마찍기 |
| 110 | 2014. 12. 26. | [ javascript ] jqgird 사용법 |
| 106 | 2014. 11. 05. | [ jqeury ] Datepicker - anytime.js 사용법 |
| 27 | 2014. 09. 25. | [ javascript ] iFrame 안의 객체 선택하기 |
| 26 | 2014. 09. 25. | [ jqeury ] 체크박스 전체 체크 |
| 25 | 2014. 09. 25. | [ jquery ] 체크박스 라디오버튼 처럼 사용하기 |
| 24 | 2014. 09. 25. | [ jquery ] 체크박스 체크여부 확인 |