如果用 JS 记录数据,然后加载到 HTML 的话(2)

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <script src="./one.js"></script>
        <script>
            var Ajax = function () {
                for (var i=0; i<jsonData.length; i++)
                { 
                    document.write("<a href='" + jsonData[i]['url'] + "' target='_blank'>" + jsonData[i]['name'] + "</a>"  + "<br>");
                }
            }
        </script>
    </head>
    <body>
        <div id="the_content"></div>
        <input type="button" value="Ajax提交" onclick="Ajax()" />
    </body>
</html>