On a purely plot basis, TKJ doesn't tie in with any particular Joker story before it, but thematically
, it's a total analysis and deconstruction of the Joker as the Golden Age, Silver Age, Bronze Age, and even DKR portrayed him. When TKJ first came out in March of '88, no Joker story before had ever
portrayed the Joker as such a petty, disgusting, and downright pathetic
individual. The three "ages" typically focused on the "glamor" side of the Joker, and his feud with Batman; both men seemed to enjoy their duels of wits more than anything else, and all those civilians caught in the middle? Well, who gives a **** about them? Even DKR, which arguably kicked off the whole "Joker has a body count the size of Texas' population" trend, portrayed him as a respectable, near-mythical figure - intelligent, charismatic, and a legend among Gotham's criminals even after ten years of vegging out.
Moore drives a bulldozer through all that, basically going "He's a murderer
, for God's sake. He should be hated, or perhaps pitied, but not respected
or hailed as some kind of badass." IMO, TKJ is very much a rebuttal to the previous four-and-a-half decades of Joker stories, and it needs to be read in that context to be fully appreciated.