?? p673_helloworld2.jsb
字號:
<JSB>
<JSB_DESCRIPTOR NAME="HelloWorldC"
DISPLAYNAME="Hello World demonstration."
>
<JSB_PROPERTY NAME="AlertMessage"
PROPTYPE="JS"
TYPE="string"
DEFAULT_VALUE="Hello World"
READMETHOD="GetAlertMessage"
WRITEMETHOD="SetAlertMessage"
ISDEFAULT
SHORTDESCRIPTION="Content of message to be displayed"
>
<JSB_METHOD NAME="GetAlertMessage"
TYPE="string"
ISEXPERT
>
</JSB_METHOD>
<JSB_METHOD NAME="SetAlertMessage"
TYPE="void"
ISEXPERT
>
<JSB_PARAMETER NAME="NewValue"
TYPE="string"
>
</JSB_METHOD>
<JSB_METHOD NAME="ShowMessage" TYPE="void" >
<JSB_PARAMETER NAME="strContent"
TYPE="string"
>
</JSB_METHOD>
<JSB_CONSTRUCTOR>
function GetAlertMessage()
{
return this.AlertMessage;
}
function SetAlertMessage(strNewValue)
{
this.AlertMessage = strNewValue;
}
function ShowMessage(strMessage)
{
// Process the argument passed and display it.
var strText;
strText = strMessage + "!!!";
alert(strText);
}
//***
// The constructor
//
function HelloWorldC (params)
{
this.AlertMessage=params.AlertMessage;
this.SetAlertMessage=params.SetAlertMessage;
this.GetAlertMessage=params.GetAlertMessage;
ShowMessage(this.AlertMessage);
}
</JSB_CONSTRUCTOR>
</JSB>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -