- 宣言
var hashItems = [];
var hashItems = new Array();
- 追加
hashItems['key1'] = value1;
- キーの存在チェック
if ('key1' in hashItems) {
}
if (hashItems['key1']) {
}
- 削除
delete hashItems['key1'];
- JSON 形式に変換
var jsonString = $.stringify(hashItems);
- 参考文献
Go to list of users who liked
More than 5 years have passed since last update.
var hashItems = [];
var hashItems = new Array();
hashItems['key1'] = value1;
if ('key1' in hashItems) {
}
if (hashItems['key1']) {
}
delete hashItems['key1'];
var jsonString = $.stringify(hashItems);
Register as a new user and use Qiita more conveniently
Go to list of users who liked