认证密钥在控制器中被设为类变量。
The authentication key is set as a class variable in your controller.
清单1中显示的类定义了几个类变量。
首先,您将再定义几个类变量,如清单8所示。
First you'll define a few more class variables, as shown in Listing 8.
cssclass:这是字段的css类变量。
如何从其他类变量的价值吗?
你可以直接通过类名访问类变量和方法。
你可能想要什么是类变量而不是方法参数。
What you probably want are class variables rather than method parameters.
清单15中的代码实现XML文档和类变量之间的映射。
The code in Listing 15 implements the mapping between the XML document and the class variables.
我只使用数字和字符串作为模型中的类变量。
I have only used Numbers and strings as variables in the model class.
这里创建了另外三个类变量以帮助格式化XHTML输出。
Three more variables are created here to help format the XHTML output.
清单6提供了BuddyNoteView的实例和类变量。
Listing 6 provides the instance and class variables for BuddyNoteView.
在随后进行更改时,将视图部件实例的引用存储到一个类变量中。
In the change that follows, it stores a reference to the view part instance in a class variable.
不能将断言同实例的类变量声明一块使用,但却可以将其置于任何方法内。
An assertion cannot be used with class variable declarations for instance, but can be placed within any method.
这些类变量(如清单1所示)在类的构造函数中进行设置,如清单2所示。
These class variables (shown in Listing 1) get set in the class's constructor, as shown in Listing 2.
依赖项注入可以通过多种方式进行,例如通过setter方法或类变量。
Dependency injection can occur in a variety of ways, such as through a setter method or a class variable.
根据声明这些变量的方式及位置,这三类变量有以下五种作用域。
There are five types of scope that these three types of variables can have, depending on how and where they are declared.
我添加了一个字符串名称、一个端口类变量,还有两个函数:构造器和服务器。
I add a string name and port class variable and then two functions: a constructor and the server.
依赖性的引入可以以多种方式出现,例如,通过设置属性值的方法或者类变量。
Dependency injection can occur in a variety of ways, for example, via a setter method or a class variable.
与实例变量不同的是,类变量与该类所有的对象关联在一起而非某个特定的对象。
Unlike instance variables, class variables are associated with all objects of a particular class and not with individual objects.
基于解的充分必要条件,讨论了一类变量变分不等式的神经网络方法。
Neural networks for solving a class of variant variational inequalities are studied under the necessary and sufficient conditions of the solution.
这种变量被称为类变量,顾名思义,该类型的变量在类的级别定义而非方法的级别。
These variables are called class variables and, as their name suggests, are defined at the level of the class rather than at the level of a method.
时间序列分析显示两类变量都存在一阶负相关,而交易活动存在周日效应。
The time series analysis show that the two class of variables have one order negative correlation, and the trading activity has weekly seasonal effect.
类变量同样需要小心使用,但它们又恰恰是引入下一部分要讨论的常量命名的最好工具。
Class variables must also be used with care, but they are precisely the right tool for introducing names for constants, as discussed in the following section.
用该法对包含两类变量的杆、梁结构进行了拓扑优化设计,收到了较好的效果。
By applying this method to the topology optimum design for rod and beam structures containing these two types of variables, better results were achieved.
在我们的范例之中,标识符存储在静态的类变量之中,这样如有需要就可以从外边访问它了。
In our example, the identifier is stored in a static class variable so that it can be accessed from outside if necessary.
然后将 $print类变量设为1,直接将库指定到输出的XHTML。
Then you set the $print class variable to 1, specifying to the library to output XHTML directly.
分析了荷载比例、矢跨比、垂跨比和抗力类变量的变异系数对结构可靠性能的影响。
The influences of the load combination ratio, rise-span ratio, sag-span ratio and resistant variable variance on the reliable performance are discussed.
建立了第一类两类变量的广义拟势能、拟余能原理,第二类两类变量的广义拟势能、拟余能原理。
The first and the second types generalized quasi-potential energy principle and quasi-complementary energy principle which with two kinds of variables are established.
建立了第一类两类变量的广义拟势能、拟余能原理,第二类两类变量的广义拟势能、拟余能原理。
The first and the second types generalized quasi-potential energy principle and quasi-complementary energy principle which with two kinds of variables are established.
应用推荐