問題タブ [xml2js]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
124 問題
0
投票する
1
に答える
3555
参照
javascript - Nodejs - JSON をループして、文字列を見つけて置換します
NodeJSでは、jsonで「このテキストは変更する必要があります」を見つけたいです。これは現在私のコードです:
これは私の console.log(json) です:
テキストは office:body にありますが、それを解析する方法がわかりません。どんな助けでも感謝します
編集:これは私のcontent.xmlです:
そして、これは私のedited-test.xmlである必要があります: