WML Browser

    技术2022-05-11  85

    The WMLBrowser library contains functions that can be used to access browser variables.WML Browser库(Library)包含了用来访问浏览器变量的函数


    WMLScript WMLBrowser Library FunctionsWMLScript WMLBrowser库(Library)函数

    Function函数Description描述getCurrentCard()Returns the (relative) URL of the current card返回当前card的(相对:relative)URLgetVar()Returns the value of a variable返回一个变量的值go()Goes to a new card直接指向一个新的cardnewContext()Clears all variables清除所有变量prev()Goes to the previous card直接指向前一个cardrefresh()Refreshes the current card刷新当前cardsetvar()Sets the value of a variable设置一个变量值

    Note: The WML specification states that calls to library functions that are not supported by the browser should return invalid. Because of this, all the above functions should be tested against their return value, and proper action should be taken in case a function returns invalid.注意:WML的规范是:如果请求的库函数(Library Function)不能被浏览器支持,那将返回“无效”(invalid);由于这点原因,上述的函数必须通过它们的返回值进行测试;而当函数返回“无效(invalid)”时也能够做出适当的反应。

     

    最新回复(0)