Quantum nonlocality represents correlation properties between subsystems of a composite quantum system, usually including the four types: Bell nonlocality, steerability, entanglement, and quantum correlation (quantum discord).
Given a basis $e_{AB}=\{|e_{ij}\>\}_{i\in[d_A],j\in[d_B]}$ for the Hilbert space $\H_A\otimes \H_B$ of a bipartite system $AB$, a density operator $\rho^{AB}$ (quantum state) of $AB$ can be represented as a $d_Ad_B\times d_Ad_B$ matrix $\hat{\rho}_{e_{AB}}=[\]$, called the density matrix of a density operator $\rho^{AB}$. A natural question is what is the relationship between the quantum nonlocality of a density operator $\rho^{AB}$ and its corresponding density matrix $\hat{\rho}_{e_{AB}}$? In this work, we discuss the relationships between quantum locality and basis, and prove that one type of quantum locality of density operators and that of their density matrices under a basis are the same if and only if the chosen basis is the tensor product of the bases of subsystems. Consequently, different bases define different quantum nonlocality density operators.