PyWebIO v1.0.3 使用手册38 4.4 pywebio.session —会话相关 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.5 pywebio.platform —Web 框架支持 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 4 类型为 bytes-like object pywebio.session.run_js(code_, **args) 运行 js 代码. 代码运行在浏览器的 JS 全局作用域中 参数 54 Chapter 4. Documentation PyWebIO, 发布 1.0.3 • code (str) –js 代码 • args –传递给 js 代码的局部变量。变量值需要可以被 json output_usage, 68 p pywebio.input, 30 pywebio.output, 38 pywebio.platform, 58 pywebio.session, 54 87 PyWebIO, 发布 1.0.3 88 Python 模块索引 索引 A actions() (在 pywebio.input 模块中), 34 C checkbox() (在0 码力 | 94 页 | 1.71 MB | 1 年前5
PyWebIO v1.1.0 使用手册37 4.4 pywebio.session —会话相关 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.5 pywebio.platform —Web 框架支持 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 4 交互函数。仅能在基于协程 的会话上下文中调用 参数 coro_obj –协程对象 返回 TaskHandle 实例。通过 TaskHandle 可以查询协程运行状态和关闭协程。 参见:协程会话的并发 54 Chapter 4. Documentation PyWebIO, 发布 1.1.0 pywebio.session.run_asyncio_coroutine(coro_obj) 若会话线程和运行 output_usage, 71 p pywebio.input, 29 pywebio.output, 37 pywebio.platform, 61 pywebio.session, 54 91 PyWebIO, 发布 1.1.0 92 Python 模块索引 索引 A actions() (在 pywebio.input 模块中), 33 C checkbox() (在0 码力 | 98 页 | 1.73 MB | 1 年前3
PyWebIO v1.4.0 使用手册34 4.4 pywebio.session —会话相关 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.5 pywebio.platform —应用部署 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 await eval_js(expression) 语法来进行调用。 Example: current_url = eval_js("window.location.href") (下页继续) 54 Chapter 4. Documentation PyWebIO, 发布 1.4.0 (续上页) function_res = eval_js('''(function(){ var a = p pywebio.input, 24 pywebio.output, 34 pywebio.pin, 70 pywebio.platform, 60 pywebio.session, 54 107 PyWebIO, 发布 1.4.0 108 Python 模块索引 索引 A actions() (在 pywebio.input 模块中), 29 asgi_app() (在0 码力 | 115 页 | 1.70 MB | 1 年前3
PyWebIO v1.4.0 Documentation5 pywebio.platform — Deploy applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.6 pywebio.pin — Persistent input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . max_payload_size='200M', **tor- nado_app_settings) Deploy the PyWebIO applications from a directory. 54 Chapter 4. Documentation PyWebIO, Release 1.4.0 The server communicates with the browser using WebSocket support PYTHON MODULE INDEX p pywebio.input, 22 pywebio.output, 31 pywebio.pin, 62 pywebio.platform, 54 pywebio.session, 48 95 PyWebIO, Release 1.4.0 96 Python Module Index INDEX A actions() (in module0 码力 | 102 页 | 1.35 MB | 1 年前3
PyWebIO v1.2.3 DocumentationBrowser family. such as ‘Mobile Safari’ – browser.version (tuple): Browser version. such as (5, 1) 54 Chapter 4. Documentation PyWebIO, Release 1.2.3 – browser.version_string (str): Browser version string pywebio.output), 36 go_app() (in module pywebio.session), 54 H hold() (in module pywebio.session), 52 I info (in module pywebio.session), 54 input() (in module pywebio.input), 28 input_group() (in module module pywebio.input), 30 seo() (in module pywebio.platform), 62 set_env() (in module pywebio.session), 54 set_processbar() (in module pywebio.output), 39 set_scope() (in module pywebio.output), 36 span() (in0 码力 | 92 页 | 1.32 MB | 1 年前3
PyWebIO v1.2.2 DocumentationBrowser family. such as ‘Mobile Safari’ – browser.version (tuple): Browser version. such as (5, 1) 54 Chapter 4. Documentation PyWebIO, Release 1.2.2 – browser.version_string (str): Browser version string pywebio.output), 36 go_app() (in module pywebio.session), 54 H hold() (in module pywebio.session), 52 I info (in module pywebio.session), 54 input() (in module pywebio.input), 28 input_group() (in module module pywebio.input), 30 seo() (in module pywebio.platform), 62 set_env() (in module pywebio.session), 54 set_processbar() (in module pywebio.output), 39 set_scope() (in module pywebio.output), 36 span() (in0 码力 | 92 页 | 1.35 MB | 1 年前3
PyWebIO v1.3.3 Documentationinteractive functions are available in the thread. Can only be used in the thread-based session. 54 Chapter 4. Documentation PyWebIO, Release 1.3.3 See Concurrent in Server mode Parameters thread output_usage module, 70 download() (in module pywebio.session), 53 E eval_js() (in module pywebio.session), 54 F file_upload() (in module pywebio.input), 34 G get_scope() (in module pywebio.output), 38 go_app() module, 53 R radio() (in module pywebio.input), 32 register_thread() (in module pywebio.session), 54 remove() (in module pywebio.output), 38 run_async() (in module pywebio.session), 53 run_asyncio_coroutine()0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.1 Documentationinteractive functions are available in the thread. Can only be used in the thread-based session. 54 Chapter 4. Documentation PyWebIO, Release 1.3.1 See Concurrent in Server mode Parameters thread output_usage module, 70 download() (in module pywebio.session), 53 E eval_js() (in module pywebio.session), 54 F file_upload() (in module pywebio.input), 34 G get_scope() (in module pywebio.output), 38 go_app() module, 53 R radio() (in module pywebio.input), 32 register_thread() (in module pywebio.session), 54 remove() (in module pywebio.output), 38 run_async() (in module pywebio.session), 53 run_asyncio_coroutine()0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.0 Documentationinteractive functions are available in the thread. Can only be used in the thread-based session. 54 Chapter 4. Documentation PyWebIO, Release 1.3.0 See Concurrent in Server mode Parameters thread output_usage module, 70 download() (in module pywebio.session), 53 E eval_js() (in module pywebio.session), 54 F file_upload() (in module pywebio.input), 34 G get_scope() (in module pywebio.output), 38 go_app() module, 53 R radio() (in module pywebio.input), 32 register_thread() (in module pywebio.session), 54 remove() (in module pywebio.output), 38 run_async() (in module pywebio.session), 53 run_asyncio_coroutine()0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.2 Documentationinteractive functions are available in the thread. Can only be used in the thread-based session. 54 Chapter 4. Documentation PyWebIO, Release 1.3.2 See Concurrent in Server mode Parameters thread output_usage module, 70 download() (in module pywebio.session), 53 E eval_js() (in module pywebio.session), 54 F file_upload() (in module pywebio.input), 34 G get_scope() (in module pywebio.output), 38 go_app() module, 53 R radio() (in module pywebio.input), 32 register_thread() (in module pywebio.session), 54 remove() (in module pywebio.output), 38 run_async() (in module pywebio.session), 53 run_asyncio_coroutine()0 码力 | 100 页 | 1.34 MB | 1 年前3
共 43 条
- 1
- 2
- 3
- 4
- 5













