使用JavaScript,如果另一个字符串以第一个字符串开头,那么如何从其他字符串中剥离一个字符串?Should return nothing (either NULL or FALSE or "" would be fine) since s2 doesn't start with 'Hello'
三个答案的演示
在HTML中,我有这样的代码: <h1>1 Title with some <sup>extra</sup> tags.</h1> XSLT函数子字符串-在以下位置之后: <xsl:variable name="title" select="fn:substring-after(normalize-space(.), '')"/> 剥离第一个字符串<