所有宏指令都可以被设定为按某一快捷键开始运行。
您可以编辑并添加自己的代码宏。
打开宏编辑器,然后编写代码。
现在看看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.
关联宏和控件中的事件。
为什么要把它实现成宏?
使用新的类似宏的特性可以避免这种失效。
Using the new macro-like attributes you can remove the failure point.
这个宏需要一个字符串作为测试套件的名称。
The macro expects a string that is the name of the test suite.
这些宏需要解释一下。
我为宏做可爱的便当,并给他送到店里。
星际争霸较其他RTS游戏有着最好的宏机制。
通常你需要一个宏来指定记录等级。
但是马宏升的看法却不一样。
使用样板宏可以使这种模板化代码的维护更容易。
Using boilerplate macros can make maintenance of such templated code much easier.
当然你们也可以在那里看到马特宏峰。
马宏向文森特许诺,他们会很快放他离开。
Viaweb的编辑器代码里有20~25%的宏。
The source code of the Viaweb editor was probably about 20-25% macros.
现在是时候将您前面创建的宏和这个控件关联起来了。
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.
目前冷宏任上海大学艺术学院的兼职教授。
Leng Hong is currently a Pluralistic Professor at the Fine Art College of Shanghai University.
但是,在讨论宏之前,先与其他几个特性做一下比较。
But before we get into macros, a few other features are worth comparing.
要理解这段代码的含义,让我们从for 宏开始。
To understand this piece of code, let's start with the for macro.
auth - constraints宏比较复杂。
使用这些宏,您就可以为每一个对象创建一个小的文件。
Using these macros, you can create a nice small document for each object.
使用这些宏,您就可以为每一个对象创建一个小的文件。
Using these macros, you can create a nice small document for each object.
应用推荐