script.aculo.us InPlaceEditor loadingText 选项
script.aculo.us 库是一个跨浏览器库,旨在改进网站的用户界面。 Ajax.InPlaceEditor 用于使元素可编辑,从而允许用户编辑页面上的内容并将更改提交到服务器。
InPlaceEditor loadingText选项用于指定在指定loadTextURL选项并且 InPlaceEditor 从服务器加载文本时将显示的文本。未指定此选项时的默认值为“正在加载...”。
句法:
{ loadingText: string }
值:此选项具有如上所述和如下所述的单个值:
- 字符串:这是一个字符串,指定要使用的文本。默认值为“正在加载...”。
下面的示例说明了此选项的使用。
例子:
下面的 HTML 文件通过示例演示了这一点:
HTML
GeeksforGeeks
InPlaceEditor loadingText Option
The "loadingText" option specifies the placeholder
text to be used when text is being loaded from the
server specified using the "loadTextURL" option.
This is the editable element!
PHP
PHP
下面就地。需要PHP脚本来模拟将数据保存到服务器。
PHP
下面的加载文本。需要PHP脚本来模拟从其中加载文本的服务器。
PHP
输出: