随笔分类 - javascript
摘要:Date格式转化为日期 年-月-日(格式随意修改)
阅读全文
摘要:1、bootstrapSwitch 默认选项,加上checked表示true,不加表示false
阅读全文
摘要:官方文档:http://bootstrap-table.wenzhixin.net.cn/zh-cn/documentation/#多语言 一、引入js、css 二、html,一个带id的table 三、
阅读全文
摘要:报错:Client closed connection before receiving entire response 前端请求: 后端接受: 错误原因:因为后端传的{"name":"2","passwd":"2"}不是json格式,需要转下json 改为下面即可成功 另外:需要加headers
阅读全文
摘要:javascript获取select的值全解获取显示的汉字document.getElementById("bigclass").options[window.document.getElementById("bigclass").selectedIndex].text获取数据库中的idwindow.document.getElementById("bigclass").value获取select组分配的索引idwindow.document.getElementById("bigclass").selectedI
阅读全文