task：js实现pos