Get value of input element in event listener with d3

后端 未结 3 1684
温柔的废话
温柔的废话 2021-01-06 22:27

I have two html elements:


I\'m using d3 to add a listener in a s

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-06 23:12

    Use the third argument:

    function getSearchText(d, i, o) {
      const myValue = o[0].value;
    }
    

提交回复
热议问题