所有宏指令都可以被设定为按某一快捷键开始运行。
您可以编辑并添加自己的代码宏。
打开宏编辑器,然后编写代码。
现在看看GAS如何使用宏。
在GAS中,宏参数是按名称指定的。
现在需要在宏结束后触发这个业务逻辑。
Now you need to trigger the business logic after the macro ends.
现在,宏编辑器显示出来了,如图2所示。
如果宏不能执行指定操作,就会提供警告。
If the macro can't perform the operation, it provides a warning.
它很容易理解并且内置了对几种宏的支持。
It’s homoiconic and got built in support for several kinds of macros.
关联宏和控件中的事件。
为什么要把它实现成宏?
这个宏需要一个字符串作为测试套件的名称。
The macro expects a string that is the name of the test suite.
这些宏需要解释一下。
但这并不意味着马宏升是个坏孩子。
信不信由你,宏和括号联系紧密。
And believe it or not, what they do is related to the parentheses.
“我中风了,”马宏升对医生说。
"Look, I'm having a stroke," Maloney told the doctor authoritatively.
星际争霸较其他RTS游戏有着最好的宏机制。
马宏升的事业迎来了天赐良机。
宏看到我很开心,但还有一点点羞愧。
在塔克斯宏重设报警器之前溜了出来。
Ruby在类层次上将这些方法调用引用为宏。
Ruby refers to these method invocations at the class level as macros.
但是马宏升的看法却不一样。
马宏从港口经理处拿到了柜台录像带。
Mahone gets the security disk from the harbor master's office.
随着周末到来,马宏升开始感到无助。
使用样板宏可以使这种模板化代码的维护更容易。
Using boilerplate macros can make maintenance of such templated code much easier.
我为宏做可爱的便当,并给他送到店里。
马宏升和乔治马上驱车到当地的急救中心。
马宏向文森特许诺,他们会很快放他离开。
现在是时候将您前面创建的宏和这个控件关联起来了。
Now it is time to associate the macro you created previously with this control.
如果我们试图像上面的宏这样进行设置,它会失败。
If we tried to set this up like the previous macros it would fail.
应用推荐