iOS js
Posted zzfx
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS js相关的知识,希望对你有一定的参考价值。
[webView stringByEvaluatingjavascriptFromString:@"document.getElementById(\"idNumber\").value=\"6217000x10055975513\";"];
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById(\"username\").value=\"于淇\";"];
NSString *username = [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById(\"username\").value;"];
NSString *account = [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById(\"idNumber\").value;"];
CGFloat height = [[webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName(‘tips-login‘)[0].offsetHeight"] floatValue];
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName(‘tips-login‘)[0].style.margin=\"0.3rem 3.5rem 0 3.5rem\""];
NSString *info = [[UIDevice currentDevice] name];
NSString *js = [NSString stringWithFormat:@"showInfo(\"name\",\"%@\")",info];
NSString *jx = [self.webView stringByEvaluatingJavaScriptFromString:js];
以上是关于iOS js的主要内容,如果未能解决你的问题,请参考以下文章
未找到 Socket.io.js(node.js + express + socket.io)
带有express和socket.io的节点js-找不到socket.io.js