回答編集履歴
1
コード修正
test
CHANGED
@@ -14,7 +14,15 @@
|
|
14
14
|
|
15
15
|
```js
|
16
16
|
|
17
|
+
function createElementWithProps(factory, tagName, props) {
|
18
|
+
|
19
|
+
return Object.assign(factory.createElement(tagName), props);
|
20
|
+
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
|
17
|
-
let input =
|
25
|
+
let input = createElementWithProps(document, 'input', {
|
18
26
|
|
19
27
|
type :"radio",
|
20
28
|
|