|
用的是JQurery插件,在my.js中代码如下所示,alert中怎么显示的还是<?php echo site_url('manage/boot/sdd'); ?>,我想让tmp显示的是http://localhost/sddong/index.php/manage/boot/sdd.
$(function() {
/*$(".button").click(function() {
alert();
});*/
function bbn()
{
var name=$("input#username").val();
var pwd=$("input#inputPassword").val();
var email=$("input#inputEmail").val();
var tmp="<?php echo site_url('manage/boot/sdd'); ?>";
alert(tmp);
}
$("#bbn").on('click',bbn);
});
|
|