xiaodanlee / HAVEfun

0 stars 0 forks source link

function bind problem #1

Open xiaodanlee opened 6 years ago

xiaodanlee commented 6 years ago

import "./button.less";

export default function button(word ,type,hasIcon){ let iconStr = hasIcon ? :; this.onclickFun = function(){ console.log("lals"); } return (`

${iconStr} ${word}
 `);

}