日期:2014-05-16  浏览次数:20407 次

html 函數問題
XXX.c
websWrite
("<tr><td lign='center'><input type=\"button\" onclick=\"myfunction();\"></td></tr>");
secondfunction(uint8 * num)
{
 if (!strncmp(num, "ssss", 4)
 thirdfunction();
}


YYY.c
function myfunction(){\n\
secondfunction(\"ssss\");\n\
}\n\


我想要按了按鈕 讓我的thirdfunction()動作~不過沒有反應~請問我哪裡寫錯了?
HTML 函数

------解决方案--------------------
YYY.c
function myfunction(){\n\
secondfunction(\"ssss\");\n\
}\n\

function myfunction()怎么定义在yyy.c文件?应该定义在js文件或者html文件。