js url请求 参数大小问题

JavaScript010

js url请求 参数大小问题,第1张

<a>超链接提交方式是get,get请求有数据大小限制(2KB),建议使用js提交

$('a').click(function(){

var url = $(this).attr('href')

indow.location.href = url

})

应该不是参数太长,而是你这样传递进去应该是字符串吧,又有数字又有字符的,不应该是加上双引号吗?

preauthConfirm("345678-0707070-123123123",456789)

getWidth(),,如果全屏显示就设置LayoutParams.WINDOW_SERVICE)2

return display.setLayoutParams(new LayoutParams(LayoutParams.getSystemService(Context

public int getScreenWidth() {

WindowManager wm = (WindowManager) sInstance

, LayoutParams.getDefaultDisplay().MATCH_PARENT如果自适应就设置LayoutParams

int height = getScreenHeight/.WRAP_CONTENT.MATCH_PARENT))

Display display = wm.WRAP_CONTENT

int width = getScreenWidth/

全屏

imageView].WRAP_CONTENT)), LayoutParams.setLayoutParams(new LayoutParams(LayoutParams.setLayoutParams(new LayoutParams(width2

imageView]

自适应

imageView].MATCH_PARENT, height)),,然后只进去就行了获取屏幕的宽度和高度然后计算出你控件的大小