更新时间:2023-11-03 10:21:52
您的意思是Zen编码,就像DOM创建一样.您可以在禅编码Google项目页面上找到禅编码的语法.
What you mean is Zen Coding like DOM creation. You can find the syntax of zen coding on the zen coding google project page.
用法是:
var zen = function(input) {
return jQuery(zen_coding.expandAbbreviation(input, 'html', 'xhtml'));
};
var dom = zen('div#id.class');
$('body').append(dom);