Mintouch Wiki - 保存当前页面的代码
我有一个使用 Mindtouch 软件创建的 wiki。我创建了一个页面,上面有一个 HTML 表格。有一个按钮,当单击该按钮时,将调用一个 javascript 函数,该函数将新行添加到页面上的表格中。
我的问题是关于如何保存当前页面(现在该表比最初多了一行)。理想情况下,用户应该单击保存按钮并保存当前页面。当您离开该页面并返回该页面时,已添加的行不再存在。
请注意,我并不是指在“编辑模式”下保存页面。
提前致谢!
I have a wiki created using Mindtouch software. I have created a page which has an HTML table on it. There is a button that when clicked calls a javascript function that adds a new row to the table on the page.
My question is regarding how to save the current page (now that the table has one more row than it had initially). Ideally, the user should click a save button and the current page should be saved. When you leave the page and return to it the row that has been added is no longer there.
Please note that I am not referring to saving the page when it is in 'edit mode'.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 javascript 来完成此操作。希望此链接有帮助 http://developer.mindtouch.com/ DekiScript/教程/使用_JEM_to_send_PUT%2f%2fPOST%2f%2fDELETE_requests_to_a_RESTful_API
You can use javascript to do it. Hope this link helps http://developer.mindtouch.com/DekiScript/Tutorials/Using_JEM_to_send_PUT%2f%2fPOST%2f%2fDELETE_requests_to_a_RESTful_API