我在看的Apache的兩個版本的配置腳本之間的差異,我注意到在配置新版本如下: if [ some test ]; then :
do this
else
do that
與舊版本: if [ some test ]; then
do this
else
do that
的唯一不同的是:(冒號),no-op,在then語句之後。 編輯1:因此,新
我想知道內部函數是什麼樣的? 我知道,你可以寫以下 var obj = {
test: 'something'
}
但在這段代碼中,innerfunction並不是指一個變量,而是一個功能。 有沒有其他方法來編寫/調用內部函數? function outer(){
var a = "Outerfunction";
console.log(a)
i
我有以下問題,有人可以幫助我嗎? comp = {}
comp.__index = function(obj,val)
if val == "insert" then
return rawget(obj,"gr")["insert"]
end
return rawget(obj, val)
end
comp.new = function()