This question already has answers here:
When to use double or single quotes in JavaScript?
                                
                                    (44个回答)
                                
                        
                6年前关闭。
            
        

使用这个有什么区别

$('.container').text();


和这个:

$(".container").text();


")和(')都可以,但是有什么区别?

最佳答案

总而言之,没有任何区别。

关于javascript - 在选择器字符串中使用“或”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9208979/

10-08 21:49
查看更多