私はhtmlを変更してデータを印刷するjavascriptコード を持っています。このページをファイルにダンプします。javascriptでhtmlをコンパイルしてファイルにダンプします
<html>
<head>
<script type="text/javascript">
document.write("<h1>This is a heading one </h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</head>
<body>
<h1>This is a heading two </h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
<html>
<head>
<script type="text/javascript">
document.write("<h1>This is a heading one </h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</head>
<body>
<h1>This is a heading one </h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<h1>This is a heading two </h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
output.html私はページを呼び出し、その出力をファイルにダンプすることができますので、私は、コマンドラインインタフェースを搭載したHTML + Javaスクリプトエンジンのようなもの...ブラウザが必要だと思う。.. 任意のアイデア?...任意のヘルプは、ありがとうございます、ありがとう
あなたはこれが必要なものについて詳しく説明できますか? –
あなたはできません - JavaScriptを使用してクライアントファイルシステムにアクセスすることはできません。どうしてこれをしようとしていますか? – ManseUK
私はPHPのサーバー側でそれをやります。あなたのケースでは、サーバー上でPHPを使用することは可能でしょうか? – robertp