|
@@ -12,6 +12,7 @@ r"""输出内容到用户浏览器
|
|
.. autofunction:: clear_before
|
|
.. autofunction:: clear_before
|
|
.. autofunction:: clear_after
|
|
.. autofunction:: clear_after
|
|
.. autofunction:: clear_range
|
|
.. autofunction:: clear_range
|
|
|
|
+.. autofunction:: remove
|
|
.. autofunction:: scroll_to
|
|
.. autofunction:: scroll_to
|
|
|
|
|
|
环境设置
|
|
环境设置
|
|
@@ -95,6 +96,12 @@ def clear_range(start_anchor, end_anchor):
|
|
send_msg('output_ctl', dict(clear_range=[inner_start_anchor_name, inner_end_ancher_name]))
|
|
send_msg('output_ctl', dict(clear_range=[inner_start_anchor_name, inner_end_ancher_name]))
|
|
|
|
|
|
|
|
|
|
|
|
+def remove(anchor):
|
|
|
|
+ """将 ``anchor`` 锚点连同锚点处的内容移除"""
|
|
|
|
+ inner_ancher_name = _AnchorTPL % anchor
|
|
|
|
+ send_msg('output_ctl', dict(remove=inner_ancher_name))
|
|
|
|
+
|
|
|
|
+
|
|
def scroll_to(anchor, position=TOP):
|
|
def scroll_to(anchor, position=TOP):
|
|
"""将页面滚动到 ``anchor`` 锚点处
|
|
"""将页面滚动到 ``anchor`` 锚点处
|
|
|
|
|