Skip to content
View yuxufm's full-sized avatar

Block or report yuxufm

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. add and remove DOM using Alpine.js add and remove DOM using Alpine.js
    1
    <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
    2
    
                  
    3
    <div x-data="{data: []}">
    4
        <div @click="data.push({ randomNumber: new Date().getTime() })">(Click Here To Add New Data)</div>
    5
        <template x-for="(item, index) in data" :key="index">