大家好我有更多的問題。我現在用的職能和活動的工作,這是我迄今爲止..具有適當參數的函數
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Personal Information</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="js_styles.css" type="text/css" />
<script type="text/javascript">
//<![CDATA[
function printPeronalinfo("name,age,hobbies,favorite movies") {
document.write("<p>" + name +"</p>");
document.write("<p>" + age +"</p>");
document.write("<p>" + hobbies + "</p>");
document.write("<p>" + favorite video + "</p>");
}
//]]>
</script>
</head>
<body>
<script type="text/javascript">
/* <![CDATA[ */
printPeronalinfo("age,age,hobbies,favorite movies")
var return_value = return_message();
document.write(return_value);
/*]]> */
</script>
</body>
</html>
現在我的問題是,我知道我做錯了什麼原因它沒有顯示在網頁上了。這是想讀我的名字,年齡,愛好,最喜歡的電影。現在,我要重複頭腦中的內容,而不是單詞名稱,我將把名字放在那裏,或者使用if或else(但我確定這是按鈕)。我也知道我可以使用一個數組,但我不知道這是否會起作用。
好吧,我得到它的工作,除了電影之一不工作.. – norris1023
在我的工作完全正常。 – drudge
好的,謝謝你,你可以提供一些關於如何創造性的想法。你認爲窗口提示會好嗎 – norris1023