Skip to content

Instantly share code, notes, and snippets.

View daidr's full-sized avatar
🐶
在做了在做了(新建文件夹)

Xuezhou Dai daidr

🐶
在做了在做了(新建文件夹)
View GitHub Profile
@daidr
daidr / MasonryBox.vue
Created January 14, 2022 08:32
Masonry layout in vue3
<script setup>
import { onActivated, onDeactivated, onMounted, onBeforeUnmount, reactive, nextTick } from 'vue'
import { getCurrentInstance } from '@vue/runtime-core'
const self = getCurrentInstance()
const props = defineProps({
defaultCol: {
type: Number,
default: 4
@daidr
daidr / 括号匹配demo.html
Created September 13, 2019 01:46
用于演示简单的括号匹配算法
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>简单的括号匹配算法演示 - By 戴兜</title>
<style>
input {