<?xml version="1.0" encoding="utf-8"?>

<snippet name = "重定向" description = "用于将浏览器重定向到给定的 URL 的代码。" preview="code" type="block">

<insertText location="beforeSelection">

<![CDATA[function redirect(URLStr) { location = URLStr; }

]]>

</insertText>

<insertText location="afterSelection"><![CDATA[]]>

</insertText>

</snippet>

