我有簡單的JavaScript代碼工作,但警報不會在任何瀏覽器中工作 我的代碼是:的javascript:警報不會在任何瀏覽器爲什麼
function ChangeText(){
document.getElementById("p1").innerHTML = "dorood";
}
var students = [student1, student2, student3];
var student1 ={FirstName:"saeed",LastNmae:"alavi",Age:"1992"};
var student2 = { FirstName: "mohammad", LastNmae: "alavi", Age: "1992" };
var student3 = { FirstName: "hosein", LastNmae: "alavi", Age: "1992" };
alert(students[1].FirstName);