Update.js 469 Bytes
var $ = require('jquery');
common = require('../../../common/common');

function getPageFromUrl() {
    var uri = location.href + '';
    var index = uri.indexOf('background');
    index = uri.indexOf('/', index);
    if(index == -1) {
        return 0;
    } else {
        var page = uri.substring(index + 1);
        return +page;
    }
}

var page = getPageFromUrl();

common.util.__ajax({
    url: '/guang/updateArticlePic',
    data: {
        page: page
    }
})