You can pass this as a parameter to the function. function showId(g) { var str = g.id; console.log(str); } #embeddedSVG { background-color: #D2B48C; ...
確定! 回上一頁