这是什么选择器:var txt2=$("<p></p>").text("Text.");???

源码:

 <!DOCTYPE html>
<html>
<head>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
function appendText()
{
var txt1="<p>Text.</p>";              // Create text with HTML
var txt2=$("<p></p>").text("Text.");  // Create text with jQuery
var txt3=document.createElement("p");
txt3.innerHTML="Text.";               // Create text with DOM
$("body").append(txt1,txt2,txt3);        // Append new elements
}
</script>
</head>
<body>

<p>This is a paragraph.</p>
<button onclick="appendText()">Append text</button>

</body>
</html>

这其中的

 $("<p></p>").text("Text."); 中 $("<p></p>") 

这是什么意思?

  $("<p></p>")

这是jquery中通过html代码片段产生一个元素的方法。

这不是选择器,而是在内存中创建一个标签

就是创建一个p标签,,,