想要段落输出分段明智吗? [英] Want to output of paragraph is separated paragraph wise?
问题描述
我正在使用jquery和html page.i在富文本框中发布一个段落。我转换为删除
标签。我的样品输出低于
输出为:
A2Z Infra Engineering已获得合同以从 中获取,以便在交钥匙的基础上构建分站(调查,设计) ,土建工程,安装,测试和调试).A2Z Infra Engineering已经从 获得了奖项的合同。 以交钥匙方式建设分站(调查,设计,土建,安装,测试和调试)。
i想输出的是:
A2Z Infra Engineering已通过授予来自 以交钥匙方式建设分站(调查,设计,土建,安装,测试和通讯发布)。
A2Z Infra Engineering已通过奖励信获得合同来自 在交钥匙的基础上建设分站(调查,设计,土建,安装,测试&调试)。
我还给段落下的记录空间,但输出完全加入。请帮助
我尝试过:
<脚本类型=text / javascript>
$(文件).ready(function(){
调试器
var newsid = GetParameterValues(' newsid');
var newsid = getCookie();
// deleteAllCookies();
var url =http:// localhost :24844 / NewsRestService.svc / NewsById /+ newsid;
var out =;
$ .getJSON(url,function(data){
if(data.NewsByIdResult.length> 0){
out + ='
+'
'+ data.NewsByIdResult [0] .DomexVersion +'
';
}
document.getElementById(newsget) .innerHTML = out;
});
});
< / script>
(document).ready(function(){
debugger
var newsid = GetParameterValues('newsid');
var newsid = getCookie();
// deleteAllCookies();
var url =http:// localhost:24844 / NewsRestService.svc / NewsById / + newsid;
var out =;
.getJSON(url,function(data){
if(data.NewsByIdResult.length> 0){
out + =''
+''+ data.NewsByIdResult [0] .DomexVersion +'
';
}
document.getElementById(newsget)。innerHTML = out;
});
});
< / script>
试试这个
document .getElementById(' newsget')。innerHTML = out.split(' 。)。join(' 。< br />' );
im using jquery with html page.i post a paragraph in rich textbox. i convert to removed
tag. my sample output is below
output is:
A2Z Infra Engineering has secured the contract vide the letter of award from for the construction of the sub-station on turnkey basis (Survey, design, civil work, installation, testing & commissioning).A2Z Infra Engineering has secured the contract vide the letter of award from for the construction of the sub-station on turnkey basis (Survey, design, civil work, installation, testing & commissioning).
i want to Output is:
A2Z Infra Engineering has secured the contract vide the letter of award from for the construction of the sub-station on turnkey basis (Survey, design, civil work, installation, testing & commissioning).
A2Z Infra Engineering has secured the contract vide the letter of award from for the construction of the sub-station on turnkey basis (Survey, design, civil work, installation, testing & commissioning).
i give a record also space under paragraph but output get fully joined. please help
What I have tried:
<script type="text/javascript">
$(document).ready(function () {
debugger
var newsid = GetParameterValues('newsid');
var newsid = getCookie();
//deleteAllCookies();
var url = "http://localhost:24844/NewsRestService.svc/NewsById/" + newsid;
var out = "";
$.getJSON(url, function (data) {
if (data.NewsByIdResult.length > 0) {
out += '
+ '
' + data.NewsByIdResult[0].DomexVersion + '
';
}
document.getElementById("newsget").innerHTML = out;
});
});
</script>
(document).ready(function () {
debugger
var newsid = GetParameterValues('newsid');
var newsid = getCookie();
//deleteAllCookies();
var url = "http://localhost:24844/NewsRestService.svc/NewsById/" + newsid;
var out = "";
.getJSON(url, function (data) {
if (data.NewsByIdResult.length > 0) {
out += ''
+ '' + data.NewsByIdResult[0].DomexVersion + '
';
}
document.getElementById("newsget").innerHTML = out;
});
});
</script>
try this
document.getElementById('newsget').innerHTML = out.split('.').join('.<br />');
这篇关于想要段落输出分段明智吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!