浏览器显示“认为哈利波特”没有空间之间的“认为”和“哈里”的话,所以我的家伙,你可以告诉我怎么能做到这一点>>>>>和这个我的代码提醒和提示javascript
<!DOCTYPE html>
<html>
<body>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var person=prompt("Please enter your name","Harry Potter");
if (person!=null)
{
alert('thinks' + person);
}
}
</script>
</body>
</html>
'警报( '认为' +人);' – Antony 2013-03-23 19:29:28
这已经是一个拉闸。 – LiverpoolsNumber9 2013-03-23 21:53:30