JavaScript function 傳字串
<script type="text/javascript">reference : HTML ISO-8859-1 Reference
var s = "test";
document.write('<a class="link" href="javascript:show("' + s +'")">link</a>');
function show(s){
alert(s);
};
</script>
<script type="text/javascript">reference : HTML ISO-8859-1 Reference
var s = "test";
document.write('<a class="link" href="javascript:show("' + s +'")">link</a>');
function show(s){
alert(s);
};
</script>
留言