这些函数允许从页面元素添加和删除类。
These functions allow you to add and remove classes from page elements.
您可以给类、函数或常量选择任意的名称空间。
You can give a class, function, or constant any namespace you choose.
实例是将类对象作为函数调用而创建的。
Instances are created by calling the class object as a function.
想要模拟一个类,您必须定义一个函数。
简单地说,方法是在类中声明的函数。
可以使用很多种方法调用带有名称空间的函数、类或常量。
There are different options for calling a namespaced function, class, or constant.
它与类中的函数名可能不同,但在该例中是相同的。
It could be different than the function name in the class, but in this case they are the same.
这也适用于函数,甚至是类方法,如下所示。
The same concept can be used with functions, or even class methods, as shown below.
操作符类通常为一组函数。
为创建新类,我首先使用sys. class函数。
这个类然后调用那个函数并获取一个响应,该响应通过json_encode运行。
This class then invokes that function and gets a response that is run through json_encode .
例如,它将bug目标锁定为方法、函数、类或包含复杂逻辑的模块。
For example, methods, functions, a class, or a module of complex logic might be identified.
为特定的函数或类生成测试。
对于类成员函数,从__arg2开始。
创建一个名为Application的类并编写如清单2中所示的相当直观的main函数。
Create a class named Application and write the straightforward main function shown in Listing 2.
Blitz的Unifor m类提供返回在0,1间的双精度数的成员函数。
Blitz's Uniform class provides a member function that returns a double in 0, 1.
dosubmit()函数使用Ajax.Updater类把数据上传给add.php脚本。
This dosubmit() function uses the Ajax.Updater class to post the data to the add.php script.
探查space类的func1函数。
在类中添加一个简单的构造函数,如清单2中的构造函数。
Add a simple constructor to the class, such as the constructor in Listing 2.
这个类的函数有这个属性。
添加函数就像将新类添加到任何其他项目类型一样。
Adding a function is just like adding a new class to any other project type.
因为我自己正在构建一个类,所以我需要显式地创建默认构造函数。
Because I'm building a class myself, I need to explicitly create the default constructor.
其中的每一个类或函数本身都十分简单,因此更重要的是要了解它们是如何协同工作的。
Each one is fairly simple on its own, but it's also important to see how they work together.
类的构造函数应该是延迟的。
一个标签处理函数类。
(所以)不存在这个函数调用“那一类型”的功能。
这个函数是sessionmanager类的成员函数。
这样绑定的原因是:函数是在foo类中定义的。
The binding occurs this way because this is where the function is defined.
当然,内联函数也许会在类定义里被多次使用。
The inline function can be overused in class definitions, of course.
Collaborator类构造函数仍然十分简单。
应用推荐