URL参数的value为json数据,怎样定义这个url
答案:2 悬赏:50 手机版
解决时间 2021-02-27 08:39
- 提问者网友:情歌越听越心酸
- 2021-02-26 21:19
URL参数的value为json数据,怎样定义这个url
最佳答案
- 五星知识达人网友:荒野風
- 2021-02-26 22:29
俗话说就是转义。
stringByAddingPercentEscapesUsingEncoding:
Returns
a representation of the receiver using a given encoding to determine
the percent escapes necessary to convert the receiver into a legal URL
string.
- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)encoding
Parameters
encoding
The encoding to use for the returned string.
Return Value
A
representation of the receiver using encoding to determine the percent
escapes necessary to convert the receiver into a legal URL string.
Returns nil if encoding cannot encode a particular character
stringByAddingPercentEscapesUsingEncoding:
Returns
a representation of the receiver using a given encoding to determine
the percent escapes necessary to convert the receiver into a legal URL
string.
- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)encoding
Parameters
encoding
The encoding to use for the returned string.
Return Value
A
representation of the receiver using encoding to determine the percent
escapes necessary to convert the receiver into a legal URL string.
Returns nil if encoding cannot encode a particular character
全部回答
- 1楼网友:duile
- 2021-02-26 23:06
你用post方法啊,这个长度只限于服务器啊,然后用ajax啊,jquery的ajax很好使啊,这个param参数啊,封装一个json就可以了啊,然后就可以传递了啊,
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯