The dynamical behavior of the entanglement and the squeezing in the system of two ions trapped in a lossy optical cavity is discussed, in which the vibrational mode of the first ion is coupled to the cavity field via a linear-mixing interaction and the vibrational mode of the second ion is coupled to the cavity field via an effective parametric interaction, respectively. It is found that when the effective strength r1 of the coupling between the first ion and the cavity field is stronger than the strength r2 of the coupling between the second ion and the cavity field, the motional state of the...