Commit 8542e768 authored by rockyl's avatar rockyl

错误打印

去除startsWith方法
parent 38e237cc
......@@ -22,7 +22,7 @@ export function injectProp(target: any, data?: any, callback?: Function, ignoreM
let result = false;
for (let key in data) {
let value: any = data[key];
if ((!ignoreMethod || typeof value != 'function') && (!ignoreNull || value != null) && !key.startsWith('_') && !key.startsWith('$')) {
if ((!ignoreMethod || typeof value != 'function') && (!ignoreNull || value != null) && key.indexOf('_') !== 0 && key.indexOf('$') !== 0) {
if (callback) {
callback(target, key, value);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment