yes, you could make it in a knock down fashion. The under cleat, attached as I suggest above, stays the same and they are permanent. The top of the leg will be a tenon, which fits into a mortice in the cleat, which mortice and tenon are then locked together with a "drawbored" cross dowel. The cross dowels should go all the way thru the far side, no glue, so they can be removed for dis-assembly. Kinda like the cross pin on a trailer hitch. What are those pins called?
If you go this route, depending on the size and weight of the top, I think you may need the top of the leg to contact (M&T) the under cleat in more than a single center location - I would think two spots closer to the edges of the table would provide more stability. You must design the leg tops to match the cleat unders.