本帖最后由 米饭 于 2008-12-3 17:47 编辑
其中有些BIEE的代码规则,总结如下2条:
1.style中多个样式间的分号;需要用";"包含起来,且各个样式之间不能加空格,如果onclick等函数中有多个函数,之间的分号;也需要用";"包含起来;
2.js函数中如要调用列值为参数,需要用单引号'@'包含起来;如只要显示@符号,则'"@"'或"'@'"均可。
[html]"<div style="cursor:hand";"background:#00FF99";"font-weight:bold" align="center";" location.href='http://www.baidu.com'">"@"</div>"
[html]"<script>function show(str){alert(str);}</script><div style="cursor:hand";"background:#00FF99";"font-weight:bold" align="center";>"@"</div>"
Note:这是研究出来的唯一的能够传参数到js函数中的方法。
|