2016-07-23 1 views
0
function doGet() 
{ 
    return HtmlService.createHtmlOutput('<b>Hello, world!</b>'); 
} 

私は<title>をhtml形式で使用しようとしました。「Hello、world!」の代わりに使用しました。それは同じまま、アプリはタイトルのGoogleスクリプトのURLで面白く見える。 Googleのスクリプトでタイトルを設定することができます

enter image description here



アプリにタイトルを追加するために私を助けてください。

+2

'function doGet(){ var h = HtmlService.createHtmlOutput( 'Hello、world!'); h.setTitle( 'My Test App'); return h; } ' –

答えて

0

setTitle()を使用してください。

function doGet() 
{ 
    return HtmlService.createHtmlOutput('Hello, world!') 
     .setTitle('Hello Title'); 
} 
関連する問題