⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 api参考.htm

📁 里面包括了绝大多数得winapi函数及其用法介绍
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US>manage_<SPAN 
class=GramE>edit(</SPAN>data, title)<o:p></o:p></SPAN></I></B></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更改</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档,用</SPAN><SPAN 
lang=EN-US>data</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">替换它的内容,用</SPAN><SPAN 
lang=EN-US>title</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更改它的标题。</SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
lang=EN-US>data</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">参数可以是一个文件对象或一个字符串。</SPAN></P>
<P class=MsoNormal 
style="MARGIN-LEFT: 59.55pt; TEXT-INDENT: -19.85pt; mso-list: l48 level1 lfo107; tab-stops: list 59.55pt"><![if !supportLists]><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">l<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><![endif]><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">许可</SPAN><SPAN 
lang=EN-US>——Change DTML documents</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">(更改</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档)</SPAN></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US>document_<SPAN 
class=GramE>src()</SPAN><o:p></o:p></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></I></B></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">返回</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档的没有被呈递的源文本。</SPAN></P>
<P class=MsoNormal 
style="MARGIN-LEFT: 59.55pt; TEXT-INDENT: -19.85pt; mso-list: l48 level1 lfo107; tab-stops: list 59.55pt"><![if !supportLists]><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">l<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><![endif]><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">许可</SPAN><SPAN 
lang=EN-US>——View management screens</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">(观看管理屏幕)</SPAN><SPAN 
lang=EN-US> </SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 39.7pt"><SPAN lang=EN-US><SPAN 
style="mso-spacerun: yes">&nbsp;</SPAN></SPAN></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US>__call_<SPAN 
class=GramE>_(</SPAN>client=None, REQUEST={}, RESPONSE=None, 
**kw)<o:p></o:p></SPAN></I></B></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">调用一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档,从而引起文档执行其所包含的</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码。这个方法返回执行的结果,其可以是任何类型的对象。</SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">要完成它的任务,</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档经常需要把各种名称解析成对象。例如,当代码</SPAN><SPAN 
lang=EN-US>&lt;;dtml-var spam&gt;;</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">被执行时,</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">引擎试图解析名称</SPAN><SPAN 
lang=EN-US>spam</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">要解析名称,文档必须被传递一个名称空间,在这个名称空间里查找这些名称。这个过程可以通过以下几种方式完成:</SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 25.4pt 0pt 59.55pt; TEXT-INDENT: -19.85pt; mso-list: l48 level1 lfo107; tab-stops: list 59.55pt left 382.75pt; mso-para-margin-top: 0cm; mso-para-margin-right: 2.42gd; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 59.55pt"><![if !supportLists]><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">l<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><![endif]><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过传递一个</SPAN><SPAN 
lang=EN-US>client</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对象——如果参数</SPAN> 
<SPAN lang=EN-US>client</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">被传递,那么名称作为参数的属性来查找。</SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 25.4pt 0pt 59.55pt; TEXT-INDENT: -19.85pt; mso-list: l48 level1 lfo107; tab-stops: list 59.55pt left 382.75pt; mso-para-margin-top: 0cm; mso-para-margin-right: 2.42gd; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 59.55pt"><![if !supportLists]><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">l<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><![endif]><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过传递一个</SPAN><SPAN 
lang=EN-US>REQUEST</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">映射——如果参数</SPAN><SPAN 
lang=EN-US>REQUEST</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">被传递,那么名称作为参数的数据项来查找。如果对象不是一个映射,当视图查找一个名称时引发一个</SPAN><SPAN 
lang=EN-US>TypeError </SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">错误。</SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 25.4pt 0pt 59.55pt; TEXT-INDENT: -19.85pt; mso-list: l48 level1 lfo107; tab-stops: list 59.55pt left 382.75pt; mso-para-margin-top: 0cm; mso-para-margin-right: 2.42gd; mso-para-margin-bottom: .0001pt; mso-para-margin-left: 59.55pt"><![if !supportLists]><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">l<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><![endif]><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过传递关键字参数——名称和它们的<SPAN 
class=GramE>值可以</SPAN>作为文档的关键字参数来被传递。</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档所被赋予的名称空间是这三个方法的混合物。你可以传递任意数量的参数或者根本就不传递参数。名称首先在关键字参数中查找,然后在</SPAN><SPAN 
lang=EN-US>client</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">里,最后在映射里。</SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档本身可以作为一个</SPAN><SPAN 
lang=EN-US>client</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">参数来传递它自己,除了在指定的</SPAN><SPAN 
lang=EN-US>client</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">里查找名称,还可以在</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档本身里查找名称。</SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在一个名称空间里给一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档传递参数经常被认为是给文档提供一个关联。</SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档可以通过三种方式调用。</SPAN></P>
<P class=MsoNormal><B><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></B></P>
<P class=MsoNormal><B><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过</SPAN><SPAN 
lang=EN-US>DTML<o:p></o:p></SPAN></B></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文档可以通过另外一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">方法或文档来调用:</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US 
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt">&lt;<SPAN 
class=GramE>dtml-var</SPAN> standard_html_header&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US 
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt"><SPAN 
style="mso-spacerun: yes">&nbsp; </SPAN>&lt;<SPAN class=GramE>dtml-var</SPAN> 
aDTMLDocument&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US 
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt">&lt;<SPAN 
class=GramE>dtml-var</SPAN> standard_html_footer&gt;</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在这个例子里,文档</SPAN><SPAN 
lang=EN-US>aDTMLDocument </SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是通过另外一个</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对象采用名称的方式来被调用的。调用方法传递的</SPAN><SPAN 
lang=EN-US>client</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">参数值为</SPAN><SPAN 
lang=EN-US>this</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,</SPAN><SPAN 
lang=EN-US>REQUEST</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">参数为当前的</SPAN><SPAN 
lang=EN-US>DTML</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">名称空间。前边的代码等同于以下</SPAN><SPAN 
lang=EN-US>DTML </SPAN><SPAN 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -