PyWebIO v1.1.0 使用手册
css 颜色值 • callback_id: 点击通知消息时的回调函数 callback_id,没有回调时为 null 4.11. 服务器-客户端通信协议 83 PyWebIO, 发布 1.1.0 close_popup 关闭正在显示的弹窗 该命令字段 spec 为 null set_env 环境配置 命令 spec 字段: • title (str): 设定标题 • output_animation 子元素的前面创建;position<0 表示在父 scope 的倒数第 position 个 (从-1 计数) 元素之后创建新 scope – if_exist: scope 已经存在时如何操作: * null/不指定时表示立即返回不进行任何操作 * 'remove' 表示先移除旧 scope 再创建新 scope * 'clear' 表示将旧 scope 的内容清除,不创建新 scope • clear:0 码力 | 98 页 | 1.73 MB | 1 年前3PyWebIO v1.0.3 使用手册
'right' color: 通知消息的背景颜色,格式为合法的css颜色值 callback_id: 点击通知消息时的回调函数callback_id, 没有回调时为 null close_popup 关闭正在显示的弹窗 该命令字段 spec 为 null set_env 环境配置 命令 spec 字段: title (str): 设定标题 output_animation (bool): 是否在输出内容时,使用过渡动画 父scope的第position个(从0计数)子元素的前面创建;position<0表 示在父scope的倒数第position个(从-1计数)元素之后创建新scope if_exist: scope已经存在时如何操作: null/不指定时表示立即返回不进行任何操作 'remove' 表示先移除旧scope再创建新scope 'clear' 表示将旧scope的内容清除,不创建新scope clear: 需要清空的scope的css选择器0 码力 | 106 页 | 7.34 MB | 1 年前3PyWebIO v1.0.3 使用手册
color: 通知消息的背景颜色,格式为合法的 css 颜色值 • callback_id: 点击通知消息时的回调函数 callback_id,没有回调时为 null close_popup 关闭正在显示的弹窗 该命令字段 spec 为 null set_env 环境配置 命令 spec 字段: • title (str): 设定标题 • output_animation (bool): 子元素的前面创建;position<0 表示在父 scope 的倒数第 position 个 (从-1 计数) 元素之后创建新 scope – if_exist: scope 已经存在时如何操作: * null/不指定时表示立即返回不进行任何操作 * 'remove' 表示先移除旧 scope 再创建新 scope * 'clear' 表示将旧 scope 的内容清除,不创建新 scope • clear:0 码力 | 94 页 | 1.71 MB | 1 年前5PyWebIO v1.1.0 使用手册
'right' color: 通知消息的背景颜色,格式为合法的css颜色值 callback_id: 点击通知消息时的回调函数callback_id, 没有回调时为 null close_popup 关闭正在显示的弹窗 该命令字段 spec 为 null set_env 环境配置 命令 spec 字段: title (str): 设定标题 output_animation (bool): 是否在输出内容时,使用过渡动画 父scope的第position个(从0计数)子元素的前面创建;position<0表 示在父scope的倒数第position个(从-1计数)元素之后创建新scope if_exist: scope已经存在时如何操作: null/不指定时表示立即返回不进行任何操作 'remove' 表示先移除旧scope再创建新scope 'clear' 表示将旧scope的内容清除,不创建新scope clear: 需要清空的scope的css选择器0 码力 | 119 页 | 7.41 MB | 1 年前3PyWebIO v1.5.2 Documentation
substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } """) def setcookie(key, value, days=0): run_js("setCookie(key, value, days)", key=key, value=value is created in the parent scope. – if_exist: What to do when the specified scope already exists: * null: Do nothing * 'remove': Remove the old scope first and then create a new one * 'clear': Just clear0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.0 Documentation
substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } """) def setcookie(key, value, days=0): run_js("setCookie(key, value, days)", key=key, value=value is created in the parent scope. – if_exist: What to do when the specified scope already exists: * null: Do nothing * 'remove': Remove the old scope first and then create a new one * 'clear': Just clear0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.1 Documentation
substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } """) def setcookie(key, value, days=0): run_js("setCookie(key, value, days)", key=key, value=value is created in the parent scope. – if_exist: What to do when the specified scope already exists: * null: Do nothing * 'remove': Remove the old scope first and then create a new one * 'clear': Just clear0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.2 使用手册
substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } """) def setcookie(key, value, days=0): run_js("setCookie(key, value, days)", key=key, value=value container: 新创建的 scope 的父 scope 的 css 选择器 – position: int, 在父 scope 中创建此 scope 的位置. – scope 已经存在时如何操作: * null/不指定: 表示立即返回不进行任何操作 * ’remove’ : 先移除旧 scope 再创建新 scope * ’clear’ : 将旧 scope 的内容清除,不创建新 scope • clear:0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.5.0 使用手册
substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } """) def setcookie(key, value, days=0): run_js("setCookie(key, value, days)", key=key, value=value container: 新创建的 scope 的父 scope 的 css 选择器 – position: int, 在父 scope 中创建此 scope 的位置. – scope 已经存在时如何操作: * null/不指定: 表示立即返回不进行任何操作 * ’remove’ : 先移除旧 scope 再创建新 scope * ’clear’ : 将旧 scope 的内容清除,不创建新 scope • clear:0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.5.1 使用手册
substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } """) def setcookie(key, value, days=0): run_js("setCookie(key, value, days)", key=key, value=value container: 新创建的 scope 的父 scope 的 css 选择器 – position: int, 在父 scope 中创建此 scope 的位置. – scope 已经存在时如何操作: * null/不指定: 表示立即返回不进行任何操作 * ’remove’ : 先移除旧 scope 再创建新 scope * ’clear’ : 将旧 scope 的内容清除,不创建新 scope • clear:0 码力 | 125 页 | 1.72 MB | 1 年前3
共 84 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9