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.
如果 current 是一个变量,我将如何写这个:
$('body').load('current body');
非常感谢你的帮助 :)
使用字符串连接。
$('body').load('' + current + ' body');
简单地 :
$('body').load(yourVar + ' body');