首页 > 其他 > 详细

Uediter的引用和取值

时间:2015-07-31 17:52:14      阅读:230      评论:0      收藏:0      [点我收藏+]

页面应用Uediter控件,代码如下:

   

技术分享
                        <tr>
                            <td align="center" class="xwnr_j">
                                <asp: TextBox ID ="txtContent" TextMode ="MultiLine" Height ="274px" Width ="95%" runat="server"></asp :TextBox>
                            </td>
                        </tr>
                        <script type="text/javascript">
                            var option = {};
                            var Question = new baidu.editor.ui.Editor(option);
                            Question.render( txtContent);
                        </script>
View Code

 

JS代码如下(需要引用JS):

技术分享
var content = Question.getContent();
当添加、修改、删除传值到.ashx页面的时候
 $.get("/plus/DetailsAdd.ashx", { action: "insert", content:escape(content), Id: id }, function (msg) {
}
View Code

用escape方法传值.

希望有所帮助。

Uediter的引用和取值

原文:http://www.cnblogs.com/liuyanpeng/p/4692742.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!