-
github上你可以用别人的现成的代码 直接 git clone 即可了
-
然后你也想改代码或者贡献代码咋办?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//一种用普通的字符串的方法,另外一种用正则,还是正则的扩展性高一点。。 | |
//方法一:字符串方法 | |
function ifRepeat(str) { | |
var ss = str; | |
for (var i = 0; i < ss.length; i++) { | |
var cha = ss.charAt(i); | |
var sub = ss.substring(0,i)+ss.substring(i+1); | |
if (sub.indexOf(cha)!=-1) { | |
console.log("有重复"); |
Note: This is an old guide and may not work for newer versions of macOS. Please see comments below for additional steps.
- Install memcached. I'd suggest using homebrew.
brew install memcached
- Select your desired version of PHP that you'd like to use in MAMP. This dropdown is located in the PHP tab in MAMP PRO.
- Visit the Downloads Page on php.net and download the source code. If your release isn't listed, visit the Releases page.
- Extract the source into
/Applications/MAMP/bin/php/[php version folder]/include/php
. /Applications/MAMP/bin/php/[php version folder]/include/php/configure
/Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcache
.