Can only use javascript to write, the requirement is behind the goods may increase a goods, include name, price and id
CodePudding user response:
If the JS acquires goods list first let HTML=document. The getElementById (" list - the container "). InnerHTML, then add commodity HTML + 6=html6; In rendering, empty goods list, the final document. The getElementById (" list - the container "). InnerHTM=HTML. If JQ directly using the append ();