如何获取指向my index.php页面的JavaScript url链接

如何获取指向my index.php页面的JavaScript url链接,javascript,php,Javascript,Php,如何在index.php页面中获取php变量的链接 解决方案如下: new Imgur({ clientid: '3527680b6690575', //You can change this ClientID callback: feedback }); 你能用代码添加更多细节吗?index.php只是一个php页面的示例。完整的代码也在这个链接中。根据ajax的请求…请您写一些关于这个的示例代码。谢谢 new Imgur({ clientid: '3527680b6

如何在index.php页面中获取php变量的链接

解决方案如下:

new Imgur({
    clientid: '3527680b6690575', //You can change this ClientID
    callback: feedback
});

你能用代码添加更多细节吗?index.php只是一个php页面的示例。完整的代码也在这个链接中。根据ajax的请求…请您写一些关于这个的示例代码。谢谢
new Imgur({
    clientid: '3527680b6690575', //You can change this ClientID
    callback: feedback
});
function notifvanish() {
    var data = 0;
    var dataset = 'set=' + data;
    $.ajax({
        type: "POST",
        url: "notifvanish.php",
        data: dataset,
        cache: false,
        success: function (html) {
            //alert("Success");
        }
    });
}