本文中的示例演示了如何使用XML变量进行声明、赋值和测试。
The examples in this article illustrated how to use an XML variable for declaring, assigning, and testing values.
let:使用let可以为变量赋值,但是(很快将看到)和其他flwor子句相比,let用的比较少。
Let: you assign values to variable with let, although (as you'll soon see) you won't use let as often as you use the other FLWOR clauses.
这让我们可以迅速获得信息,像在区域中为哪个变量赋值、引用了哪个变量以及该变量是否包含在某个跳转和返回的声明中。
This allows one to quickly get information such as which variables are assigned in a region, which are referenced, and if it contains any jump or return statements.
文章描述了怎样创建事件和公共赋值变量,以及怎样在例子中使用它们。
The article demonstrates how to create events and public render parameters and use them in the sample.
若是变量的声明和赋值不在同一行书写的话,编译器将不允许我们使用类型推断。
Type inference is not allowed in cases where the variable is not assigned a value on the same line it is declared.
对于浮点变量的操作只限于简单的赋值表达式和作为VUE函数的变量。
Operations for floating point variables are limited to simple assignment expressions and as arguments to VUE functions.
正如您在这里看到的那样,RationalApplication Developer 7.5提供的工具,极大地简化了事件和公共赋值变量的创建。
As you have seen here, the tools provided by Rational Application Developer 7.5 greatly simplify the creation of events and public render parameters.
抽取器中的变量名title和author是随意的;从捕捉组来的匹配结果会简单地从左往右被赋值,你可以叫它们任何名字。
The variable names title and author within the extractor are arbitrary; matches from capture groups are simply assigned from left to right, and you can call them whatever you'd like.
按照如下步骤,创建一个portlet程序,该程序集成了事件和公共赋值变量,以便在portlets之间进行交流。
To create a portlet application that incorporates events and public render parameters for communication between portlets, complete these tasks.
由于指针、int和long在64位系统上大小不再相同了,因此根据这些变量是如何赋值和在应用程序中使用的,可能会出现问题。
Since pointer, int, and long are no longer the same size on 64-bit systems, problems may arise depending on how the variables are assigned and used within an application. A few tips in this regard.
对变量进行再赋值总是很有用的,但你用的时候要做好备注和提示。如果变量的值频繁变化,就可能让代码难以阅读和调试。
Reassigning variables is often useful, but you should use it with caution. If the values of variables change frequently, it can make the code difficult to read and debug.
上下文是简单的变量和表达式所需的函数,将返回一个值,并且赋值给标识,包括在符号表中的。
A context is simply the variables and functions that are needed by the expression to return a value, and are assigned to the identified included inside the Symbol Table.
您仍可以调用变量的方法和访问它的数据元素,但赋值重新初始化了变量元素。
You can still call its methods and access its data elements, although variable elements are reinitialized by the assignment.
您仍可以调用变量的方法和访问它的数据元素,但赋值重新初始化了变量元素。
You can still call its methods and access its data elements, although variable elements are reinitialized by the assignment.
应用推荐