星空网 > 软件开发 > ASP.net

Uediter的引用和取值

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

   

Uediter的引用和取值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):

Uediter的引用和取值Uediter的引用和取值
var content = Question.getContent();当添加、修改、删除传值到.ashx页面的时候 $.get("/plus/DetailsAdd.ashx", { action: "insert", content:escape(content), Id: id }, function (msg) {}

View Code

用escape方法传值.

希望有所帮助。




原标题:Uediter的引用和取值

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

VAT税务计算的正确方法及方法指南:https://www.kjdsnews.com/a/1341234.html
VAT税务计算方法简单易懂的指南:https://www.kjdsnews.com/a/1341235.html
VAT税务计算方法掌握税务筹划的关键:https://www.kjdsnews.com/a/1341236.html
VAT税务计算方法指南:https://www.kjdsnews.com/a/1341237.html
VAT税号和EORI税号的申请与使用方法:https://www.kjdsnews.com/a/1341238.html
VAT税号和EORI税号的申请与使用指南:https://www.kjdsnews.com/a/1341239.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
北京丰台区水上乐园哪家好玩?:https://www.vstour.cn/a/366177.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流