We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAP.prototype._init = function(args){ if(arguments.length<1) return;//如果不传参数,则全部使用默认值
if(typeof arguments[0] === 'object'){//如果传递了对象,则替换默认值 var obj = arguments[0]; this.width = obj.width || this.width; this.height = obj.height || this.height; this.offset = obj.offset || this.offset; this.quality = obj.quality || this.quality; this.generate = obj.generate || null; this.fontsize = obj.fontsize || this.fontsize; return; }
this._text_len = 6;//这个不能改 啊
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CAP.prototype._init = function(args){
if(arguments.length<1) return;//如果不传参数,则全部使用默认值
this._text_len = 6;//这个不能改 啊
The text was updated successfully, but these errors were encountered: