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.
我有点想创建一个小网站的小后端。我想知道如何制作一个在我的服务器上创建文件夹的按钮?
mkdir 应该可以工作!但是我怎样才能在 buttonclick 上触发 mkdir 事件?
是的——您必须通过单击按钮提交或使用 AJAX(我建议使用 jQuery 等 javascript 库)。这将使您在可以执行的服务器端mkdir()。
mkdir()