Paul Cook's Chesterfield were good value for a first-half lead, courtesy of Jay O'Shea, only for Kortney Hause to level matters in first-half stoppage time.
Both sides went close after the interval but Jo Kuffour's brilliantly improvised finish - his first goal in Wycombe colours - consigned the visitors to a third successive league defeat on their travels.
Ainsworth said: "For 44 minutes we didn't turn up and I've told the lads, it's the second time I've had to lose it with them. That has been my most forceful team talk yet; I had to get a performance out of them second half because first half we didn't turn up at all.
"I'm so pleased with the reaction that we got second half, and I'm so pleased for Jo Kuffour getting a goal. Second half we did it right and we rightfully got the three points. I have standards and they have to be met. I'm pleased with the result and at last we've got a free week, because a few of the boys are dead on their feet.
"Age means nothing to me because I know ability and form at the moment is important.
"If Kortney (Hause) keeps performing the way he has, he'll keep playing. And I'm sure he has got a big future because he's looking very assured."
Cook pulled no punches after the defeat, labelling his spineless Chesterfield side "soft and weak".
He said: "We've come away from home, we start the game well and we're we'll on top. We score first and we should go on to dominate the game. We should create more chances and score goals but our record says we concede and when we concede we look like caving in.
"And I felt at times in the second half we did cave in. We lost our balance, our shape and when you're looking for a leader or two we don't really seem to have them."