var data = "<input type=text size=4 name=productName3   />";
找到里面的数字3,替换成任意的数字比如说换成4var data = "<input type=text size=4 name=productName4  />";