Although the multi-level structure of superconducting qubits may result in calculation errors, it can be rationally used to effectively improve the speed of gate operations. Utilizing a current-biased Josephson junction (λ-type rf-SQUID) as a tunable coupler for superconducting transmission line resonators (TLRs), under the large detuning condition, we demonstrate the controllable generation of entangled coherent states in circuit quantum electrodynamics (circuit QED). The coupling between the TLRs and the qubit can be effectively regulated by an external bias current or coupling capacitor. Further investigations indicate that the maximum entangled state can be obtained through measuring the excited state of the superconducting qubits. Then, the influence of the TLR decay on the prepared entangled states is analyzed.