|
此文章由 DDD888 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 DDD888 所有!转贴必须注明作者、出处和本声明,并保持内容完整
本帖最后由 DDD888 于 2025-2-11 09:36 编辑
我感觉做不到,正如楼主所说,输入数据其实是非常重要的一步,没有输入数据,我想现在的chatgpt, gemini是不能和顶级程序员的智慧匹敌的,例如我问个问题https://chatgpt.com/share/67aa7c27-5298-8009-8847-99d78e3bf419
chatgpt回答的答案是错的,显然chatgpt没有读过源程序代码,纯粹是在网上已有的答案里胡掰
这是源程序代码截图,显然正确的位置是有两个,一个是项目的根目录,一个是"../../assets/web/index.html"
同样的问题问gemini.google,这是部分回答,显然第一条是正确的,但第二条是错误的,如果你是老板,你的员工给你错误的答案,或者一半正确的答案,你会满意吗?要能正确的写index.html,知道需要将文件存到哪个路径这种最基本的知识,chatgpt,gemini都不能肯定的给出正确的百分之一百的答案,唯有自己阅读源程序才可以知道,RTFSC对程序员来讲其实是没办法绕过的
In a Dioxus project, you customize the index.html file by modifying the one that's already in your project. You don't typically place a new index.html somewhere else. Dioxus uses the index.html found in the root of your project (or sometimes in a public directory, depending on your setup) as the template.
Here's a breakdown and why:
Project Root (Most Common): The most typical location for index.html is directly in the root of your Dioxus project, alongside your Cargo.toml file. This is the default location Dioxus expects.
public Directory (Less Common, Often for Static Assets): Some project setups, especially those using tools like create-dioxus-app, might have a public directory. If present, Dioxus will often serve the index.html from there. This public directory is also used for other static assets (images, fonts, etc.).
Why Not Elsewhere? Dioxus's build process is configured to look for index.html in these specific locations. It uses this file as the base for your web application. Placing it elsewhere won't be picked up automatically. You'd have to explicitly tell Dioxus where to find it, which is generally not supported by the common tooling.
How to Customize:
Locate index.html: Find the index.html file in your project's root directory or the public directory (if you have one).
Modify Directly: Open the index.html file in a text editor and make the changes you need. This is the standard way to customize it. |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|