{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/906","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/906/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/906/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/906/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/906","id":79264504,"number":906,"title":"初始化表单关于search默认值的问题","user":{"login":"jackie1982","id":1221658,"avatar_url":"https://avatars.githubusercontent.com/u/1221658?v=3","gravatar_id":"","url":"https://api.github.com/users/jackie1982","html_url":"https://github.com/jackie1982","followers_url":"https://api.github.com/users/jackie1982/followers","following_url":"https://api.github.com/users/jackie1982/following{/other_user}","gists_url":"https://api.github.com/users/jackie1982/gists{/gist_id}","starred_url":"https://api.github.com/users/jackie1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackie1982/subscriptions","organizations_url":"https://api.github.com/users/jackie1982/orgs","repos_url":"https://api.github.com/users/jackie1982/repos","events_url":"https://api.github.com/users/jackie1982/events{/privacy}","received_events_url":"https://api.github.com/users/jackie1982/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-22T03:35:27Z","updated_at":"2015-05-26T16:35:55Z","closed_at":"2015-05-26T16:35:55Z","body":"URL：   http://xxxxxxx.com/\r\n表单内容：   ajax取数据没问题，此时不加任何search内容。\r\n\r\n我希望输入URL      http://xxxxxxx.com/?search=abc\r\n表单search框内容为abc，查询内容取  search=abc的数据\r\n\r\n我目前的配置：\r\n\r\nqueryParams: function (p) {\r\n            alert(p.search);\r\n            return {\r\n                page_size: p.limit,\r\n                page: p.offset/p.limit+1,\r\n                search: p.search\r\n            };\r\n        },\r\n        pagination: true,\r\n        pageSize: 50,\r\n        pageList: [10,20,100],\r\n        sidePagination: 'server',\r\n        showRefresh: true,\r\n        search: true,\r\n        searchText: '{{s}}'\r\n        showColumns: true,\r\n        toolbar: \"#toolbar\",\r\n        cache: false\r\n\r\n{{s}}的内容为我从URL的  &search=abc  获取到的值。\r\n\r\n但是表单没有效果，还是查询所有内容，并且search框的内容为空。\r\n\r\n试了好多次，都不行，可能是个低级错误，但目前还未查出来，求助。。。。\r\n"},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/105596219","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/906#issuecomment-105596219","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/906","id":105596219,"user":{"login":"wenzhixin","id":2117018,"avatar_url":"https://avatars.githubusercontent.com/u/2117018?v=3","gravatar_id":"","url":"https://api.github.com/users/wenzhixin","html_url":"https://github.com/wenzhixin","followers_url":"https://api.github.com/users/wenzhixin/followers","following_url":"https://api.github.com/users/wenzhixin/following{/other_user}","gists_url":"https://api.github.com/users/wenzhixin/gists{/gist_id}","starred_url":"https://api.github.com/users/wenzhixin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenzhixin/subscriptions","organizations_url":"https://api.github.com/users/wenzhixin/orgs","repos_url":"https://api.github.com/users/wenzhixin/repos","events_url":"https://api.github.com/users/wenzhixin/events{/privacy}","received_events_url":"https://api.github.com/users/wenzhixin/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T16:35:55Z","updated_at":"2015-05-26T16:35:55Z","body":"见：http://jsfiddle.net/e3nk137y/1821/"}}