Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537
個人編寫HTML使用的軟件是dreamweaver,這個軟件的話,正版是要購買的,一開始學習HTML就是用的這個軟件了,挺好用的,而且代碼提示特別方便,不用擔心太多的標簽和屬性記勞~
除了HTML基本結構的幾個標簽以外,HTML還有一些比較常用的基本標簽;
(1)文本標簽:
(2)布局標簽:
(3)多媒體標簽:
(4)超鏈接標簽:
(5)序列化標簽:
(6)表格標簽:
(7)表單標簽:
預編譯發生在函數作用域創建的階段在函數執行之前。
函數、形參、變量的優先級別:
函數 > 形參 > 變量
全局作用域預編譯
函數作用域預編譯
function fn(a){
console.log(a,1); // ? a () {} 1
var a = 2222;
console.log(a,2); // 2222 2
function a () {}
console.log(a,3); // 2222 3
}
fn(1,2)
function fn(a, c) {
console.log(a);
var a = 123;
console.log(a);
console.log(c);
function a() { }
if (false) {
var d = 678
}
console.log(d);
console.log(b);
var b = function () { }
console.log(b);
function c() { }
console.log(c);
}
fn(1, 2)
第一階段:創建 AO 對象,查找函數形參以及函數內部的變量聲明,實參和形參相統一,如果沒有傳遞實參,那么值為 undefined
AO : {
a : undefined -> 1
c : undefined -> 2
b : undefined
d : undefined
}
第二階段:查找函數聲明
AO : {
a : undefined -> 1 -> function a() { }
c : undefined -> 2 -> function c() { }
b : undefined -> function () { }
d : undefined
}
執行代碼
var person = {
firstName: "Bill",
lastName : "Gates",
id : 678,
fullName : function() {
return this.firstName + " " + this.lastName;
}
};
*請認真填寫需求信息,我們會在24小時內與您取得聯系。