For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/sapi/runtime/functions/obsStr.md.
  • 简体中文
  • Function: obsStr()

    function obsStr(v?: string): ObservableString;

    Defined in: sapi/runtime/menu-navigator.ts:62

    创建客户端可写(clientWritable: true)的响应式字符串 Observable 对象。

    Parameters

    ParameterTypeDefault valueDescription
    vstring""初始字符串值,缺省为空字符串。

    Returns

    ObservableString

    响应式字符串对象。