回答編集履歴

2

再調整

2020/03/03 04:29

投稿

yambejp
yambejp

スコア114878

test CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  ```javascript
4
4
 
5
- name = (obj['parent'][item]||{})[lang]||"notext";
5
+ name = ((obj['parent']||{})[item]||{})[lang]||"notext";
6
-
7
-
8
6
 
9
7
  ```

1

調整

2020/03/03 04:29

投稿

yambejp
yambejp

スコア114878

test CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ```javascript
4
4
 
5
- const name = (obj['parent'][item]||Object.defineProperty({},lang,{value:'notext'}))[lang];
5
+ name = (obj['parent'][item]||{})[lang]||"notext";
6
+
7
+
6
8
 
7
9
  ```