我知道我能做到这一点
$('.intro').append('<p>this is my text</p>');
Run Code Online (Sandbox Code Playgroud)
但是如何通过链接将新文本发送到新元素
$('.intro').append('<p></p>').text('this is my text');
Run Code Online (Sandbox Code Playgroud) <a href="this is tooltip" title="This is a test">Test</a>
Run Code Online (Sandbox Code Playgroud)
有没有办法在将鼠标悬停在a
元素上时删除工具提示,但仍保留title属性值?