Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/431.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在angularjs中的数据mathjax绑定中呈现html视图_Javascript_Html_Angularjs - Fatal编程技术网

Javascript 如何在angularjs中的数据mathjax绑定中呈现html视图

Javascript 如何在angularjs中的数据mathjax绑定中呈现html视图,javascript,html,angularjs,Javascript,Html,Angularjs,在这个视图中,数据mathjax工作得很好,但当我们在textarea中添加enter时,它并不是新行。当我们发布这样的东西时 当我放入$\\$时,需要新行,但我希望通过编码 e、 g.$1)abcd\\2)efgh$它显示了我 1) abcd 2) efgh how can i do it through codeing? 共享模式代码您是否在每个选项后包含换行符?@SylvanDAsh,我没有在textarea中包含任何换行符。只需按回车键。在我使用ckeditor之前

在这个视图中,数据mathjax工作得很好,但当我们在textarea中添加enter时,它并不是新行。当我们发布这样的东西时


当我放入
$\\$
时,需要新行,但我希望通过编码 e、 g.
$1)abcd\\2)efgh$
它显示了我

    1) abcd
    2) efgh

 how can i do it through codeing?

共享模式代码您是否在每个选项后包含换行符?@SylvanDAsh,我没有在textarea中包含任何换行符。只需按回车键。在我使用ckeditor之前,它显示为sdfsd

sd

sd

,所以当你按enter键(在textarea内)时,它不会转到下一行?@SylvanDAsh,它会转到textarea的下一行,但不会显示在数据mathjax绑定中(当我们在textarea中键入时会自动键入)
<div class="question-title-preview">
   <span data-mathjax-bind="question.titleDisplay"></span>
</div>
    1) abcd
    2) efgh

 how can i do it through codeing?