javascript - Using axios to send JS variables to PHP mpdf file

one text

Solution:

Sorry, for resurrecting such an old thread, but this was for my first Vue.js and PHP project and I was trying to figure out how to get things to work. I am since long finished with it.

I'm not sure I supplied enough information to fully allow others to come up with a solution (I'm using Vue.js with data members), but my jsVariables were class members rather than variables. The problem was that I forgot the this keyword.

params: {
    a: this.classMember1,
    b: this.classMember2,
    c: this.classMember3,
    d: this.classMember4,
    e: this.classMember5,
    f: this.classMember6
}

Very important to specify this as it relates to data members of a class and not non-class variables.

Source