摘要: 在 JavaScript 中,圆括号 () 是一种运算符,跟在函数名之后,表示调用该函数。比如,print() 就表示调用 print 函数 有时,我们需要在定义函数之后,立即调用该函数,例如: 以上代码出现了语法错误原因是,function 这个关键字即可以当作语句,也可以当作表达式 其中,Jav 阅读全文
posted @ 2019-09-20 17:16 Leophen 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 一、序列化: 就是将内存中的对象转换为字节序列,方便持久化到磁盘或者网络传输 SerializeToString(): serializes the message and returns it as a string. Note that the bytes are binary, not tex 阅读全文
posted @ 2019-09-20 13:59 Leophen 阅读(231) 评论(0) 推荐(0) 编辑