let myPos = 0
let load = new Riload({
el: '#loadMyArticle',
url: '../users/myArticle',
data: 'myPos='+myPos,
sukses: () => {
myPos = myPos + 1
console.log(myPos)
}
})
I have myPos variable where the default value is 0. If load function successfully run, myPos will increased + 1 in every callback. My problem, if I run console.log(myPos) in sukses callback, it can increase. But, myPos in "data" property still valued 0. How to increase this variable on data property?