Fix for JSLint “Unexpected 'this'.” error?
问题 I am trying to get the following code to become jslint-compliant, but am stuck on the following two errors: Expected to see a statement and instead saw a block. and Unexpected 'this'. What changes should I make to my code to make JSLint happy? var pvAccess = {}; pvAccess.Func = function () { "use strict"; function AccessPV(name, rValue, wValue) { var url = '/goform/ReadWrite', data = 'redirect=/response.asp&variable=' + escape(name), xmlHttp = null, wValue = null; if (rValue !== null &&