如何在Google docs按钮中换行?

问题描述 投票:1回答:1

大家好,我正在做我的第一个Google docs表项目,并且我使用以下代码创建了一个按钮:

function make_button() {
  var text = text_1 + text_2;
  Browser.msgBox("Button", text , Browser.Buttons.OK);
}

我如何在这两个字符串之间换行,以使稍后在text_2按钮中出现在新行中?

很多东西!

问候萨莎

javascript button google-docs google-docs-api
1个回答
0
投票

只需添加这样的换行符:

var text = text_1 + "\\n" + text_2;
© www.soinside.com 2019 - 2024. All rights reserved.