PHP与js之间的交互

<?php
//在php中药想使用jquery,首先需要导入jquery类库 echo "<script src='".base_url('static')."/js/jquery-1.10.2.min.js'></script> <script>$(window.parent.document).find('#login_error').html('".$msg."').show();</script>"; ?>