打开/关闭菜单
打开/关闭个人菜单
未登录
如果您进行任何编辑,您的IP地址会公开展示。

Template:Str find/doc

模板页面

Template:Template doc page viewed directly

模板样式的src属性不得为空。

用法[编辑源代码]

{{str find|text|sub_string}} = 在字串text中搜尋並返回特定字串sub_string的位置。

  • Only searches first 50 characters of text. Returns -1 if sub_string not found in first 50 characters.
  • Character position is 1 based (not 0 based as usual in calculations

參見[编辑源代码]

  • {{Strfind short}}(如果使用Str find引致模板「擴展深度超出限制」,可嘗試改用Strfind short。)
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。