func_global_valid.xml
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version='1.0' encoding='utf-8' ?>
<functions>
<category name="Validation函数">
<function name="Validation_Get">
<usage>取得某id的Validation的内容</usage>
<para>Validation的句柄</para>
<para>Validation的id</para>
<return>该Validation的JSon串</return>
</function>
<function name="Validation_GetIds">
<usage>取得所有Validation的ID</usage>
<para>Validation的句柄</para>
<return>ID, 多个ID间以逗号分隔</return>
</function>
<function name="Validation_Set">
<usage>更改或添加Validation</usage>
<para>Validation的句柄</para>
<para>Validation的id,如果该id不存在,就添加</para>
<para>该Validation的JSon串,或以分号分隔的"key=value"格式串</para>
<example>var h = AF.func("GetHandle", "Validation"); //取得句柄<br>
AF.func("Validation_Set", h+"DJ1 \r\n {'errorText':'价格不对', 'validation':'price>0'}");
</example>
</function>
<function name="Validation_Add">
<usage>添加Validation</usage>
<para>Validation的句柄</para>
<para>Validation的JSon串,或以分号分隔的"key=value"格式串</para>
</function>
<function name="Validation_Delete">
<usage>删除某id的Validation</usage>
<para>Validation的句柄</para>
<para>Validation的id</para>
</function>
<function name="Validation_DeleteAll">
<usage>删除所有Validation</usage>
<para>Validation的句柄</para>
</function>
</category>
</functions>