Commit ccbe5e6a authored by zjz1994's avatar zjz1994

游戏规则调整

parent 47cfc3b0
......@@ -13,7 +13,10 @@ export default class RulePanel extends Panel {
group: eui.Group;
private addRule() {
const text ='<br>'+ DataManager.ins.ajaxElementData.rule;
console.log("游戏规则",DataManager.ins.ajaxElementData.rule);
var str1:string = DataManager.ins.ajaxElementData.rule;
var str2 = str1.replace(/&nbsp/g,"\n");
const text ='<br>'+ str2;
this.labContent.textFlow = (new HtmlTextParser).parser(text);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment