You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/05/13 03:52:15 UTC

[GitHub] miniboxhaha commented on issue #8330: tooltip中关于formatter生成链接的问题

miniboxhaha commented on issue #8330: tooltip中关于formatter生成链接的问题
URL: https://github.com/apache/incubator-echarts/issues/8330#issuecomment-388599075
 
 
   确实可以了,但是haha(args)不能接收参数。
   ```javascript
   formatter: function(prams) {
   //*****************************************问题描述**********************************************
                   let arg = 10
                   return "<a herf=# onClick='haha(arg)'>haha</a>"//提示arg没有定义
                   return "<a herf=# onClick='haha(10)'>haha</a>"//可以接收到
   //*****************************************问题描述**********************************************
           }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org