jquery-in-place-editor
2013-12-25 11:04
148 查看
引用:
<script type="text/javascript" src="/jquery.editinplace.js"></script>
用例:
<th><div class="editable" id="${userRole.id}">${userRole.role_value}</div></th>
<script type="text/javascript">
$(".editable").editInPlace({
url: "@{Users.updateRole()}",
saving_text : "保存中...",
});
</script>
updateRole函数
public static void updateRole(String update_value, long element_id)
element_id为变化的元素的id,update_value为变化后的值~
提示: 红色部分相同,url中为现在正执行的函数
<script type="text/javascript" src="/jquery.editinplace.js"></script>
用例:
<th><div class="editable" id="${userRole.id}">${userRole.role_value}</div></th>
<script type="text/javascript">
$(".editable").editInPlace({
url: "@{Users.updateRole()}",
saving_text : "保存中...",
});
</script>
updateRole函数
public static void updateRole(String update_value, long element_id)
element_id为变化的元素的id,update_value为变化后的值~
提示: 红色部分相同,url中为现在正执行的函数
相关文章推荐
- jquery EditInPlace 插件 表格单击双击编辑行
- 在 Ajax.InPlaceEditor 中传递ID值
- (翻译)就地编辑器(Inplace Editor)
- 在 Ajax.InPlaceEditor 中传递ID值
- Script.aculo.us InPlaceEditor 使用示例
- ASPxScheduler 自定义 InplaceEditor
- Script.aculo.us开发系列(七):InPlaceEditor控件的使用
- 使用JQuery实现Edit in place效果的Input框
- jquery ajaxFileUpload插件的 missing } in XML expression错误处理
- 雇佣问题原址排列给定数组(randomize In Place)-c++代码实现及运行实例结果
- jq中遇到的问题项目中出错遇到jquery无法赋值的情况 SecurityError: The operation is insecure.
- jQuery.inArray(value,array)
- .NET Versioning and Multi-Targeting - .NET 4.5 is an in-place upgrade to .NET 4.0
- 【JQuery】jQuery.inArray 确定第一个参数在数组中的位置
- jQuery数组判等 equal array in jQuery
- Difference between prop and attr in different version of jquery
- Csharp:TinyMCE HTML Editor in .NET WindowsForms
- jQuery Plugin Tutorial, In-Depth for Absolute Beginners
- csharp:Learn how to post JSON string to generic Handler using jQuery in ASP.Net C#.
- nsthread autoreleased with no pool in place – just leaking警告的解决方法