add src attribute support

1. the parameter '"cb" in compile  function and the parameter "cb" in jobs cause some code reading confusion，I think change one name could be better :)
2. add src attribute support