@@ -1,48 +1,48 @@
-//html tree
-// var body = {
-// tagName:'div',
-// subTag:[
-// {
-// tagName:'span'
-// text:"Enter a data please:"
-// },
-// tagName:'input',
-// attrs: {
-// type: "text",
-// attrs:{
-// id:document.getElementById('surname')
-// }
-// id:'surname'
-// ]
-// tagName:'button',
-// id:'ok'
-// text:"OK"
-// id:'cancel'
-// text:"Cancel"
+html tree
+ var body = {
+ tagName:'div',
+ subTag:[
+ {
+ tagName:'span'
+ text:"Enter a data please:"
+ },
+ tagName:'input',
+ attrs: {
+ type: "text",
+ attrs:{
+ id:document.getElementById('surname')
+ }
+ id:'surname'
+ ]
+ tagName:'button',
+ id:'ok'
+ text:"OK"
+ id:'cancel'
+ text:"Cancel"
//declarative fields
var info = {
band: prompt("название группы") ,
@@ -78,4 +78,5 @@ for (let i = 0; i < persons.length; i++){
str += '</tr>';
}
str += '</table>';
-document.write(str);
+document.write(str);
+//th