Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在根据本教程自动生成 .doc 文件(实际上是 .mht) 。
生成的文件在本地运行良好,但不能在其他计算机上运行,因为该文件请求从我的本地路径加载标头,而不是使用嵌入的 base64 版本。主要内容加载正常。这是生成的文件。
我找不到这种行为的原因。任何建议表示赞赏。
编辑
原来,问题是由我的 base64 字符串开头的不必要的回车和换行字符引起的。