找回密码
 加入
搜索
查看: 1816|回复: 4

[AU3基础] 请问给变量赋值的时候,如果有很多换行怎么办?

  [复制链接]
发表于 2010-11-28 07:10:09 | 显示全部楼层 |阅读模式
比如:
$text="this is a test
and another
and another
...
"
这样写会出错,有什么办法实现呢?
谢谢
发表于 2010-11-28 07:11:15 | 显示全部楼层
$text = "this is a test" & @CRLF & "and another" & @CRLF & "..."
 楼主| 发表于 2010-11-28 07:53:18 | 显示全部楼层
谢谢版主,呵呵

再麻烦问一下有没有像php里

$text=<<<EOF
this is a test
and another
and another
...
EOF;

这种赋值方式呢?
发表于 2010-11-28 08:21:02 | 显示全部楼层
回复 3# chinafla


    不会PHP,所以不知道$text将会是个什么值。
 楼主| 发表于 2010-11-28 19:08:52 | 显示全部楼层
谢谢版主,这个就是在php中可以不escape换行的赋值方法。
没关系,很感谢你的回复。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-28 03:40 , Processed in 0.078507 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表