filling.js
来自「javascript 很酷的类库」· JavaScript 代码 · 共 56 行
JS
56 行
isc.VLayout.create({ width: 200, height: 300, border:"1px solid blue", layoutMargin:5, members: [ isc.Canvas.create({ ID: "textCanvas", prefix: "<b>Message from Rob:</b><BR>", padding:5, height: 1 }), isc.DynamicForm.create({ numCols: 2, height: "*", colWidths: [60, "*"], fields: [ {name: "subject", title: "Subject", type: "text", width: "*", defaultValue: "Re: your message" }, {name: "message", type: "text", length: 5000, showTitle: false, colSpan: 2, height: "*", width: "*" } ] }) ]});isc.Button.create({ left: 250, title: "Short message", message: "I'll be in town Saturday. Give me a call on my cell and we'll get a bite to eat.", click: function () { textCanvas.setContents(textCanvas.prefix+this.message) }});isc.Button.create({ ID: "longMessageButton", top:30, left: 250, title: "Long message", message: "I'll be in town Saturday. Give me a call on my cell and we'll check out the new Thai" +" restaurant on Polk Street. Jamie said it's great but too spicy for him, shouldn't be" +" a problem for you :)", click: function () { textCanvas.setContents(textCanvas.prefix+this.message) }});longMessageButton.click();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?