Commit ae87db11 authored by wildfirecode's avatar wildfirecode

1

parent c2a15227
...@@ -12,8 +12,12 @@ export default class RulePanel extends Panel { ...@@ -12,8 +12,12 @@ export default class RulePanel extends Panel {
NetManager.ins.yyh_queryProjectRule((success)=>{ NetManager.ins.yyh_queryProjectRule((success)=>{
let str:string = DataManager.ins.getData('yyh_queryProjectRule').data; let str:string = DataManager.ins.getData('yyh_queryProjectRule').data;
str=str.replace('/<p>/g',''); while(str.indexOf('<p>') != -1) {
str=str.replace('/</p>/g','<br>'); str=str.replace('<p>','');
}
while(str.indexOf('</p>') != -1) {
str=str.replace('</p>','<br>');
}
this.addRule(str); this.addRule(str);
}); });
} }
......
{ {"data":"<p>111</p><p>2222</p><p>33333</p>","success":true}
"success":true \ No newline at end of file
}
\ No newline at end of file
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