我已尝试使用&#39; \ n&#39;和&#39; \ r&#39;和&#39; \ r \ n&#39;而不是'<br/>'
。
但它显示为它而不是将其转换为新行。
有人请帮帮我吗?
$this->load->helper('download');
$data = 'Here is some text!';
$data .= '<br/> Here is some text!';
$name = 'mytext.txt';
force_download($name, $data,TRUE);
答案 0 :(得分:2)
您的代码应为
?- arrangement(5, 10, L).
L = [1, 1, 1, 1, 6] ;
L = [1, 1, 1, 2, 5] ;
L = [1, 1, 1, 3, 4] ;
L = [1, 1, 1, 4, 3] .
单引号中的 $this->load->helper('download');
$data = "Here is some text! \n";
$data .= 'Here is some more text in new line!';
$name = 'mytext.txt';
force_download($name, $data,TRUE);
是文字'\n'
。
\n
被解释为"\n"
。
答案 1 :(得分:0)
试试这个:
myScrollView.Scrolled += (sender, e) => { onScrolled(); };