Home  >  Article  >  Backend Development  >  javascript - 急急急!!!jquery 怎么把字符串的1/6变成可以用于计算的数字?

javascript - 急急急!!!jquery 怎么把字符串的1/6变成可以用于计算的数字?

WBOY
WBOYOriginal
2016-06-06 20:15:00899browse

如题所示!!!!!

回复内容:

如题所示!!!!!

<code class="js">eval("1/6");</code>

希望有所帮助~ :)

<code>var s = "jqueryjqueryjqueryjqueryjqueryjquery.";
    var ss = s.substr(1, 6); // 获取子字符串, 
    console.log(ss);          // 控制台输出 "Spain"。</code>

webkit f12 console 回车试下 看不懂就当我没说
javascript - 急急急!!!jquery 怎么把字符串的1/6变成可以用于计算的数字?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:支付宝SDK怎么用啊?Next article:mailchimp.php使用