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

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

  •  
  •   sunjourney · Mar 13, 2017 · 2002 views
    This topic created in 3351 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   ·   870 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:13 · PVG 05:13 · LAX 14:13 · JFK 17:13
    ♥ Do have faith in what you're doing.