Jialong Lu

Results 23 issues of Jialong Lu

```vue // 你的答案 import { onMounted, defineCustomElement, render, h } from "vue" /** * Implement the code to create a custom element. * Make the output of page show "Hello...

answer
zh-CN
22

```vue // 你的答案 interface TreeData { key: string title: string children: TreeData[] } defineProps() function CommonTree () { return } {{ parent.title }} ```

answer
zh-CN
208

```vue // 你的答案 import { ref, computed, watch, watchEffect, effectScope } from "vue" const counter = ref(1) const doubled = computed(() => counter.value * 2) // use the `effectScope` API...

answer
zh-CN
8

```vue // 你的答案 import { reactive, isReactive, toRaw, markRaw } from "vue" const state = { count: 1 } const reactiveState = reactive(state) /** * Modify the code so that...

answer
zh-CN
7

```vue // 你的答案 Hello Vue.js p { font-size:20px; color:red; text-align: center; line-height: 50px; } /* Make it work */ :global(body) { width: 100vw; height: 100vh; background-color: burlywood; } ```

answer
zh-CN
27

```vue // 你的答案 import { ref, onMounted, onUnmounted } from 'vue' // Implement ... function useEventListener(target, event, callback) { onMounted(() => { target.addEventListener(event, callback, false) }) onUnmounted(() => { target.removeEventListener(event,...

answer
zh-CN
25

```vue // 你的答案 A A A function onClick1(){ console.log('onClick1') } function onCtrlClick(){ console.log('onCtrlClick') } function onClick2(){ console.log('onClick2') } ```

answer
zh-CN
232

```vue // 你的答案 import { ref, h } from "vue" /** * Implement a functional component : * 1. Render the list elements (ul/li) with the list data * 2....

answer
zh-CN
21

```vue // 你的答案 import { DirectiveBinding } from 'vue' /** * Implement the custom directive * Make sure the `onClick` method only gets triggered once when clicked many times quickly...

answer
zh-CN
20

```vue // 你的答案 import { ref } from "vue" const state = ref(false) /** * Implement the custom directive * Make sure the input element focuses/blurs when the 'state' is...

answer
zh-CN
19