#alpinejs

AlpineJS(alpinejs.dev)
2021-6-11 19:30
< div x-data ="下拉"> ...< / div> ...... Alpine.Data('下拉'()=>({open:false,toggle(toggle(){this.open =!this.open}})) 声明一块全局,反应,可以从......