开发者

Jquery custom string comparison function with output percentage

开发者 https://www.devze.com 2023-03-22 05:17 出处:网络
I am looking to write a function in Jquery that compares two 开发者_高级运维strings and returns a percentage of similarity..exactly like the PHP function similar_text:

I am looking to write a function in Jquery that compares two 开发者_高级运维strings and returns a percentage of similarity..exactly like the PHP function similar_text:

http://www.php.net/manual/en/function.similar-text.php

Ideas on how to tackle this with Jquery/Javascript? Thanks!


PHP.JS have it: http://phpjs.org/functions/similar_text:902

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号