开发者社区> 问答> 正文

页面交互onClick填上保存失败

页面交互onClick填上保存失败

展开
收起
lh_小燕子 2020-09-23 14:27:17 713 0
1 条回答
写回答
取消 提交回答
  • ry passing a function that adds the click handler as a callback to the load function, so you know the element is there before you try and apply a click handler to it.

    $("#viewlivedatafeeds").load("viewjson.php",function(){ $('#updatejson').on('click', function(e){ e.preventDefault(); /* . . . */ } });

    2021-02-14 01:10:53
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载