ajax的路径问题

<script type="text/javascript" src="js/ajax.js"></script>


                    type: "post",

                    url: '+url+/class/config.class.php',

                    data: { "s": 1 },

                    dataType: "json",

                    async: false,

类似于php的_dir_如何能识别出绝对路径,然后加入的到url的这个位置中呢. 

这段代码直接写到ajax.js中不能直接显示.


ABOUTYOU
浏览 377回答 1
1回答

婷婷同学_

用location对象或者直接写
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript