远程公告
2018-05-05 01:27:13 -0400
Http.get("
http://www.anybeen.cn/share.php?id=8CJh3cBccVDwSy2L9zq5",function(k,v) aa=v--获取源码
tt=aa:match("【(.-)】")--截取标题(标题用【】框住)
te=aa:match("⊙(.-)⊙")--截取内容(内容用⊙⊙框住)
ty=string.gsub(te,"</div>","\n")--换行代码
ta=string.gsub(ty,"<br>","")--把一些html的代码去掉
tb=string.gsub(ta,"<div>","")--把一些html的代码去掉
AlertDialog.Builder(this)
.setTitle(tt)
.setMessage(tb)
.setPositiveButton("知道了",nil)
.show()
end)
----Comments(1)----
奕泽梦 (@xerox) |
@ at 2018-05-05 06:51:
这有用么?
Back to home
Subscribe |
Register |
Login
| N