这是一个奇怪的问题,关于可能在属性标记内的aurelia html文件中嵌入字符串,但我希望保留我的制表符和行格式。
this.queryDateStart += "type=EntityOne&dateQueryString=";
this.queryDateStart += "" +
"eOr( " +
"eAnd( " +
"eAnd( facetName:isExcluded AND facetValue:No );" +
"dAnd( facetName:deadlineDate AND "+ dateRangePredicate + ");" +
"); " +
"dOr( " +
"(facetName:excludedUntilDate AND "+ dateRangePredicate + ")" +
");" +
");"
而不是具有以下内容:
<section as-element="ab-deadlines" data-query="${queryDateStart}"></section>
那会破坏什么吗?
例如(今天就来试试这个)-在我的html文件中,我会放:
<section as-element="ab-deadlines"
data-query="
eOr(
eAnd(
eAnd( facetName:isExcluded AND facetValue:No );
dAnd( facetName:deadlineDate AND ${dateRangePredicate} );
);
dOr(
(facetName:excludedUntilDate AND + ${dateRangePredicate} )
);
);"></section>