在A域名下为B域名写cookie不可以通过ajax: $.get('http://b.com/index.php')
可以采用
<script src="http://b.com/index.php"></script>
或者
<iframe src="http://b.com/index.php" frameborder="0"></iframe>
index.php为设置cookie代码