// Empty hash table
var hashObject = {};
// Hash table with two key:value pairs:
var hashObject = {"key1":"value1","key2":"value2"};
จะเขียน key แบบไม่มี quote ก็ได้ แต่ต้องไม่ตรงกับคำสงวน
var hashObject = {key : "value"}; // create
hashObject["key"] = "new value"; // add/replace
delete(hashObject["key"]); // delete
for (var i in object) // is equivalent to foreach
Check for a presence of a particular key:
if ("key" in hashObject) // returns true or false
Comments
อันนี้เป็
อันนี้เป็นภาษาอะไรหรือครับ โทษนะครับ พอดีว่า ไม่ค่อยรู้เรื่องคอมพ์
ตามมาจาก blog คุณ peetai
นั่นสิคับ
นั่นสิคับ ผมก็อยากรู้เหมือนกัล
more javascript themes
more javascript themes
Nice write up
Nice write up
Helpful. Thank you
Helpful. Thank you
Informative, but I need to
Informative, but I need to ask: is there a shortcut to this thing?
I found your post if much
I found your post if much informative for me. I was looking for Javascript Hash recently. Now I am very happy to find this feature. Thank you
The link is really
The link is really important. I appreciate u for the link. Thanks a lot. Carry on man.
Post new comment