jQuery
Balmunc
常常因为自己不够优秀而感到恐慌
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[jQuery]获取div滚动条位置
$('div').scrollTop()原创 2021-10-10 11:36:18 · 725 阅读 · 0 评论 -
[jQuery]div滚动条回到最顶部
$('div').scrollTop(0);原创 2021-10-08 13:44:34 · 622 阅读 · 0 评论 -
[jQuery]解决php使用json_encode在前端返回字符串的问题
$.post('/home/?r=login/doLogin',{user:user,passwd:passwd},function(res){})解决方法$.post添加第四个参数$.post('/home/?r=login/doLogin',{user:user,passwd:passwd},function(res){},'json')...原创 2017-01-05 15:50:51 · 4846 阅读 · 0 评论 -
[jQuery]使用ajax
$('.new_config').click(function(){ $.ajax({ type: "POST", url: "?ct=parent_package&ac=detail", data: "id=" + $('#parent_id').val(), dataType...原创 2017-11-20 11:17:34 · 283 阅读 · 0 评论 -
[jQuery]使用dialog
<div class="comBox" hidden="hidden" id="dialog"></div><script language='javascript'>function openDialog(){ $("#dialog").dialog({ 'width':'850',原创 2017-11-20 11:11:31 · 930 阅读 · 0 评论 -
[jQuery]获取上传的文件大小
<input type='file' name='apk_file' class="text" id="apk_file"/><label id="size"><?php echo round($v['size']/(1024*1024), 2);?>MB</label>$('#apk_file').change(function原创 2017-11-20 10:59:25 · 856 阅读 · 0 评论 -
[jQuery]监听error事件
<div class="img-div"> <img class="img" src="https://xxx/1title="点击放大"></div><script> $(function(){ //正确写法 $("img.img").error(function(){}); ...原创 2019-07-13 06:54:03 · 806 阅读 · 0 评论
分享