Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检查该类.myClass是否具有名为data-url. 我已经设法在 jQuery 中做到这一点。请帮我将其转换为 PHP。
.myClass
data-url
if ($('.myClass').attr('data-url')) { // do stuff }