在新行中获取concat变量 [英] get concat variable in new line
本文介绍了在新行中获取concat变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hy frens,我怎样才能在新行中获得这个concat值。我的代码看起来像这样
hy frens, how can i get this concat values in new line . my code looks like this
if (InitialValue == "No Product Selected") {
$("[id*=lblShopProdID]").text(ProductDetails);
alert("Product Detailed:--" + ProductDetails + "--added successfully to cart");
}
else
{
var newInitialValue = $("[id*=lblShopProdID]").text();
$("[id*=lblShopProdID]").text(newInitialValue + ProductDetails);
alert("Product Detailed: " + ProductDetails + " added successfully to cart");
}
lblShopProdID需要显示连接值,但它显示在单行中没有换行我需要在新的initialvalue和productdetails之间换行
请帮助谢谢
lblShopProdID needs to show concatenated values but it is showing in single line no line break i need to have line break between new initialvalue and productdetails
please help thanks
推荐答案
( [id * = lblShopProdID])。文本(产品详细);
alert( 产品详细信息: - + ProductDetails + - 成功添加到购物车);
}
else
{
var newInitialValue =
("[id*=lblShopProdID]").text(ProductDetails); alert("Product Detailed:--" + ProductDetails + "--added successfully to cart"); } else { var newInitialValue =
( [id * = lblShopProdID])。 text();
("[id*=lblShopProdID]").text();
( [id * = lblShopProdID])。text(newInitialValue + ProductDetails);
alert( 产品详细信息: + ProductDetails + 成功添加到购物车);
}
("[id*=lblShopProdID]").text(newInitialValue + ProductDetails); alert("Product Detailed: " + ProductDetails + " added successfully to cart"); }
lblShopProdID需要显示连接值,但它显示在单行中没有换行符我需要在新的initialvalue和productdetails之间换行
请帮助谢谢
lblShopProdID needs to show concatenated values but it is showing in single line no line break i need to have line break between new initialvalue and productdetails
please help thanks
这篇关于在新行中获取concat变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文