<body onload="gogo()"> <h1>增加輸入框格的功能</h1> <form id='myform' /> <ul id='myinput'> </ul> </form> <button onclick='addli()'>增加興趣</button> <button onclick='delli()'>減少興趣</button>