jquery 中$符号六大作用 2012-12-16 86市场网 javascript a.$用作选择器, var e = $("h1 a"); var f = $("table tr:nth-child(even)") b.$用作功能函数前缀 var str = ' Welcome to 86shichang.com '; str = $.trim(str); //$.trim是jQuery的一个工具函数,实现去掉两边空格的功能 jQuery给我们提供了主要有7
"|",保留每行尾部的换行符\n. ">",删除每行尾部的换行符\n,则看似多行文本,则在程序中会将其视为一行. include_newlines: | exactly as you see will appear these three lines of poetry fold_newlines: > this is really a single line of text despite appearances 在">"符号