复制代码代码如下::
<! docType html>
<html lang = "en">
<kopf>
<meta charset = "utf-8">
<title> document </title>
</head>
<body>
<Eingabe type = "text" id = "msg">
<a href = "#" id = "result"> 提交 </a>
<div id = "show"> </div>
<script src = "jQuery1.11.js"> </script>
<Script>
$ (function () {
var flag = true;
$ ("#result"). on ('click', function () {
if (Flag) {
Flag = Falsch;
}anders{
zurückkehren;
}
$ ("#show"). html ('<p>'+$ ("#msg"). Val ()+'</p>');
});
})
</script>
</body>
</html>
So einfach!