• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sunjourney
V2EX  ›  程序员

求教 vue 的内联处理器方法是怎么实现的?

  •  
  •   sunjourney · Mar 13, 2017 · 2066 views
    This topic created in 3393 days ago, the information mentioned may be changed or developed.
    <div id="example-3">
      <button v-on:click="say('hi')">Say hi</button>
      <button v-on:click="say('what')">Say what</button>
    </div>
    

    想看 vue 的源码,奈何一时下不了手

    Supplement 1  ·  Mar 13, 2017
    大概猜到了,用 Function 构造器实现的
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   884 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:02 · PVG 04:02 · LAX 13:02 · JFK 16:02
    ♥ Do have faith in what you're doing.