![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
cultivator129480
这个作者很懒,什么都没留下…
展开
-
.js文件中写ajax请求
$.ajax({ url:'${contextPath}/shopManage/getShopInfo', type:'post', dataType:'json', success:function(data){}});通常ajax请求都是这样写的,但是一旦写大.js文件中,原创 2016-04-01 15:27:17 · 11635 阅读 · 0 评论 -
不刷新页面实现图片上传,并在指定位置显示
1.首先,引入"jquery-form.js"文件src="jquery-form.js"> 2.把添加图片的按钮放在form表单中 enctype="multipart/form-data" method="post" data-ajax="false">转载 2016-04-02 16:37:37 · 729 阅读 · 0 评论 -
select标签中显示指定内容
select标签中显示指定内容,select显示指定内容 1. $("#education option[value='本科及以上']").attr("selected",true);$(document).ready(function() { $("#education option[value='本科及以上']").attr("转载 2016-04-02 18:44:37 · 3105 阅读 · 0 评论 -
js从table中获得所需信息转为json
最近总是在改别人的项目,有些是没有办法读到源码的,又要获得显示的信息,这个是原生的js,只需要拷到浏览器运行就能获得当前table中的所需信息 var txt=document.getElementsByTagName("table");var table = txt[txt.length-1];var rowNoColumn;var noColumn;var contract原创 2017-05-24 11:11:29 · 3670 阅读 · 0 评论