从函数内部调用 d3-tip "tip.show" 时出错

Error while calling d3-tip "tip.show" from inside a function

Uncaught TypeError: e.getScreenCTM is not a function while executing the following:

 .on('click', function (d) {
            tip.show(d)
            //some more functionality
  })

 .on('click', function (d) {
            tip.show(d, document.getElementById("head"))
            //some more functionality
  })

 .on('click', function(d, i) {
   tip.show(d, i)
 })

Answer:

  .on('click', function (d) {
        tip.show(d, this)
        //other functionality
   })