Create a gist now

Instantly share code, notes, and snippets.

javascript 和 php 传字符串编码处理
javascript:
var ajaxRUrl = 'http://'+domain+'/star/~ajax/relateMsg?q='+encodeURI('{$personname}');
PHP:
$personname = urldecode($_GET['q']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment