Instead of using .text() , use .html() , that way you can use <br> like so: tooltip.select("p").html("Line1: this is line 1 <br> line 2: ...
確定! 回上一頁