Title

查看源码

属性参考

注册名 data-controller="alert"
Targets
Values
Outlets

读取 content value,调用原生 alert 弹出提示。常挂在链接上做「请先补充资料」之类的拦截提示。

  <button
    data-controller="alert"
    data-alert-content-value="请先完善资料"
    data-action="click->alert#alert"
    class="button"
  >点我</button>