Definition of jackanapes

What does the word jackanapes mean?